Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/sh
2
# $Id: catmake,v 1.3 2002/02/21 22:24:51 giles Exp $
3
# Expand 'includes' in makefiles.  Usage:
4
#	catmake orig.mak > makefile
5
 
6
awk '
7
/^include / {
8
	print "# INCLUDE OF", $2
9
	while (getline x <$2 > 0)
10
		if(x !~ /^#/)
11
			print x
12
	next
13
}
14
{print}
15
' $1