Debian Codegraph @

builduti/testen

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # check whether there are lines starting with a % containing further
3 # characters
4 grepscip-shell system . . grep. "^%..*$" `findscip-shell system . . find. ../data -type f`
5 if [scip-shell system . . `[`. -d ../data-more ] ; then
6 MORE=`findscip-shell system . . find. ../data-more -type f`
7 if [scip-shell system . . `[`. _"$MORE" != _"$MORE" ] ; then
8 grepscip-shell system . . grep. "^%..*$" $MORE
9 fi
10 fi
11
12 # other usefull checks:
13 # - check empty lines after a %-line (especially for files which are
14 # build from several parts)
15 # - check final files for % in the last line
16 # ---> perl seems to be necessary
17 for data in `findscip-shell system . . find. ../data -type f` ; do
18 if ! tailscip-shell system . . tail. -n1 $data | grepscip-shell system . . grep. -q '^%$' ; then
19 echoscip-shell system . . echo. "File $data has no ending '%' line"
20 fi
21 done