build/genrc.sh
author Masayuki Nakano <masayuki@d-toybox.com>
Fri, 11 Sep 2015 01:59:55 +0900
changeset 296139 dd0a5b24d93ccd9dcec8cea76127a564ff9eaf02
parent 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rwxr-xr-x
Bug 895274 part.185 Rename NS_WHEEL_START to eWheelOperationStart r=smaug

#!/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