Fix build with old gawk versions (BeOS & Haiku). this version didn't like passing an undefined variable as reference to a function...

Also fixed warning on $.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28655 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-11-14 23:18:50 +00:00
parent 4bc885a2db
commit 38875083b2
@@ -96,12 +96,13 @@ function collectline(f, line) {
BEGIN {
nmodels = nouis = 0
hfile=HEADERFILE
line = "";
}
NR == 1 {
VERSION = $0
gsub("\\$", "", VERSION)
printf("/* \$FreeBSD\$ */\n\n") > hfile
printf("/* $FreeBSD$ */\n\n") > hfile
printf("/*\n") > hfile
printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \
> hfile