build/genrc.sh
author Sylvestre Ledru <sledru@mozilla.com>
Mon, 14 Nov 2016 15:42:55 +0100
changeset 892664 9f9e3ba9227879d0b85ecb0e6456a3dcac0d0d0b
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 1313040 - Update the list of ignored directories/files with clang-format r=mystor MozReview-Commit-ID: ByV08Oryu6h

#!/bin/sh
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DATATYPE="$1"
INFILE="$2"

echo "${DATATYPE} RCDATA"
sed 's/"/""/g' ${INFILE} | awk 'BEGIN { printf("BEGIN\n") } { printf("\"%s\\r\\n\",\n", $0) } END { printf("\"\\0\"\nEND\n") }'

exit 0