case $# in 1) ;; *) echo "$0: one argument expected" 1>&2 exit 1 ;; esac case $1 in main) ;; Xlint) ;; *) echo "$0: $1: Illegal argument" 1>&2 exit 1 ;; esac if test -d ../Xsrc then : else mkdir ../Xsrc fi make cclash clashes cid sed '/^C_/d' < clashes > tmp$$ ./cclash -c -l7 tmp$$ > ../Xsrc/Xclashes rm -f tmp$$ cd ../Xsrc if cmp -s Xclashes clashes then : else mv Xclashes clashes fi rm -f Makefile for i in `cat ../src/Cfiles` do cat >> Makefile < $i EOF done make `cat ../src/Cfiles` make -f ../src/Makefile $1