Expanded on same-loop-handler-signature code, added staticgen.pl.
[xuni.git] / makewc.sh
blobb05c14db34a1cff5eb387ef198f2a72c6ad4e72b
1 #!/bin/sh
3 files=
5 for file in $(find src \( -name '*.c' -o -name '*.h' \) ); do
6 root=$(echo $file | sed 's/\.[ch]//')
7 ext=$(echo $file | sed 's/.*\.//')
9 if [ .$ext = '.c' -a -f $root.y ]; then
10 file=$root.y
13 files="$files $file"
14 done
16 wc $files