ack/lang/m2/comp/Resolve

44 lines
591 B
Plaintext
Raw Normal View History

1986-09-25 19:39:06 +00:00
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
1986-10-06 20:36:30 +00:00
make cclash clashes cid
sed '/^C_/d' < clashes > tmp$$
./cclash -c -l7 tmp$$ > ../Xsrc/Xclashes
rm -f tmp$$
1986-09-25 19:39:06 +00:00
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 <<EOF
$i: clashes ../src/$i
../src/cid -Fclashes < ../src/$i > $i
EOF
done
make `cat ../src/Cfiles`
make -f ../src/Makefile $1