File indexing completed on 2024-05-05 04:59:31
0001 #!/bin/sh 0002 0003 # $1 is fish.pl 0004 # $2 is md5sum 0005 # $3 is the output file 0006 # $4 are the parameters for cut 0007 0008 SUM=`$2 "$1" | cut -d ' ' $4 ` 0009 echo '#define CHECKSUM "'$SUM'"' > $3 0010 echo 'static const char fishCode[] =' >> $3 0011 sed -e 's/\\/\\\\/g;s/"/\\"/g;s/^[ ]*/"/;/^"# /d;s/[ ]*$/\\n"/;/^"\\n"$/d;s/{CHECKSUM}/'$SUM'/;' "$1" >> $3 0012 echo ';' >> $3 0013