5 # $3 is the output file
6 # $4 are the parameters for cut
8 SUM
=`$2 "$1" | cut -d ' ' $4 `
9 echo '#define CHECKSUM "'$SUM'"' > $3
10 echo 'static const char *fishCode(' >> $3
11 sed -e 's/\\/\\\\/g;s/"/\\"/g;s/^[ ]*/"/;/^"# /d;s/[ ]*$/\\n"/;/^"\\n"$/d;s/{CHECKSUM}/'$SUM'/;' "$1" >> $3