LINECOUNT=400
# Create an #include'able version of this file
-rm -f $1.h MAKETMP*
-split -l $LINECOUNT $1.txt MAKETMP
+rm -f $1.h $1_tmp*
+split -l $LINECOUNT $1.txt $1_tmp
NUM=0
echo "/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY!!! */" >>$1.h
echo "const char *$1_part[] = {" >>$1.h
-for i in MAKETMP*; do
+for i in $1_tmp*; do
if [ $NUM -ne 0 ]; then
echo "," >>$1.h
echo >>$1.h
SIZE=`wc -c $1.txt | tr -d ' A-Za-z._-'`
NAME_UPPER_SIZE=`echo $1_SIZE | tr '[:lower:]' '[:upper:]'`
echo "#define $NAME_UPPER_SIZE $SIZE" >>$1.h
-rm -f MAKETMP*
+rm -f $1_tmp*
exit 0