Fixing new line marks output in tools/generator.sh.

This commit is contained in:
Ruben Ayrapetyan
2014-12-18 14:05:22 +03:00
parent 84294018a3
commit 5c4c47514a
+5 -12
View File
@@ -17,15 +17,8 @@
echo "#include \"globals.h\"" > $2
echo "" >> $2
echo "static char generated_source [] =" >> $2
echo "{" >> $2
cat $1 | fold -w1 | while read ch
do
if [ "$ch" == "" ]
then
ch=" "
fi
echo " '$ch'," >> $2
done
echo " 0" >> $2
echo "};" >> $2
cat $1 | while read line
do
echo "\"$line\n\"" >> $2
done
echo ";" >> $2