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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user