mkmi 647 Bytes
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh
for i in \
	Makefile \
	doc/Makefile \
	doc/man/Makefile \
	scripts/Makefile \
	src/Makefile \
	src/include/Makefile \
	src/include/server/Makefile \
	src/libraries/Makefile \
	src/libraries/libansi/Makefile \
	src/libraries/libcommon/Makefile \
	src/libraries/libisc-new/Makefile \
	src/libraries/libisc-new/src/Makefile \
	src/libraries/libmisc/Makefile \
	src/libraries/regex/Makefile \
17 18
	src/server/Makefile \
	run-support/Makefile
Per Cederqvist's avatar
Per Cederqvist committed
19 20 21
do
	rm -f $i.in2
	echo $i
22 23 24
	m4 ./scripts/mkmi.m4 $i.src \
	 | sed 's/\$Id\(.*\)\$/Generated from\1/' \
	 > $i.in2
Per Cederqvist's avatar
Per Cederqvist committed
25 26 27 28 29 30 31 32
	if cmp $i.in2 $i.in
	then
		rm -f $i.in2
	else
		rm -f $i.in
		mv $i.in2 $i.in
	fi
done