| 1 | #!/bin/sh |
| 2 | # check whether there are lines starting with a % containing further |
| 3 | # characters |
| 4 | grep "^%..*$" `find ../data -type f` |
| 5 | if [ -d ../data-more ] ; then |
| 6 | MORE=`find ../data-more -type f` |
| 7 | if [ _"$MORE" != _"$MORE" ] ; then |
| 8 | 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 `find ../data -type f` ; do |
| 18 | if ! tail -n1 $data | grep -q '^%$' ; then |
| 19 | echo "File $data has no ending '%' line" |
| 20 | fi |
| 21 | done |