mkmi 1.5 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
#!/bin/sh
Per Cederqvist's avatar
Per Cederqvist committed
2
# $Id: mkmi,v 1.5 1994/04/04 20:33:50 ceder Exp $ 
Per Cederqvist's avatar
Per Cederqvist committed
3
# Generate Makefile.in from Makefile.src template
Per Cederqvist's avatar
Per Cederqvist committed
4
# Copyright (C) 1994  Lysator Academic Computer Association.
Per Cederqvist's avatar
Per Cederqvist committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se. 

Per Cederqvist's avatar
Per Cederqvist committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 \
37
38
	src/server/Makefile \
	run-support/Makefile
Per Cederqvist's avatar
Per Cederqvist committed
39
40
41
do
	rm -f $i.in2
	echo $i
42
43
44
	m4 ./scripts/mkmi.m4 $i.src \
	 | sed 's/\$Id\(.*\)\$/Generated from\1/' \
	 > $i.in2
Per Cederqvist's avatar
Per Cederqvist committed
45
46
47
48
49
50
51
52
	if cmp $i.in2 $i.in
	then
		rm -f $i.in2
	else
		rm -f $i.in
		mv $i.in2 $i.in
	fi
done