gliv-1.1.3
[gliv.git] / help2c.sh
blob45d32969ff8645d9a82434e5655e5b21724774f5
1 #/bin/sh
3 # Print beginning of file.
4 echo '/* Generated by help2c.sh */'
5 echo -n '#define TEXT '
7 # Search the help lines.
8 while [ "$LINE" != "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" ]
9 do read LINE
10 done
12 # Copy the help lines.
13 echo -n \"
14 while read LINE && [ "$LINE" != "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" ]
15 do echo -n "$LINE"\\n
16 done
18 # Print end of file.
19 echo \"