Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/planix-v0/sys/src/cmd/gs/src/catmake – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | 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