Revision 6546a3a5dee7736a51bd8da8c45ec93bf1f7a087 authored by Ted Mielczarek on 06 April 2015, 11:12:50 UTC, committed by Ted Mielczarek on 06 April 2015, 11:12:50 UTC
--HG--
extra : transplant_source : %0B%29%1C4%9E%0A%BF%DF%C4%25%F1%DA%08%BC%15%20%E5%A5%3A-
1 parent 51d27bb
Raw File
genrc.sh
#!/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
back to top