Debian Codegraph @

example/c2tex

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # convert .c to .lg
3
4 if [scip-shell system . . `[`. -n "$1" ] && [scip-shell system . . `[`. -f $1 -o -f $1.c ]
5 then
6 if [scip-shell system . . `[`. `basenamescip-shell system . . basename. $1` = `basenamescip-shell system . . basename. $1 .c` ]
7 then
8 lgrind -i -v subst $1.c > $1.lg
9 echoscip-shell system . . echo. Created $1.lg
10 else
11 lgrind -i -v subst $1 > `basenamescip-shell system . . basename. $1 .c`.lg
12 echoscip-shell system . . echo. Created `basenamescip-shell system . . basename. $1 .c`.lg
13 fi
14 else
15 echoscip-shell system . . echo. Usage: $0 "<file>[.c]"
16 echoscip-shell system . . echo. $1.c does not exist.
17 fi