NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/38766: makesyscalls.sh breaks build if mawk is used
The following reply was made to PR kern/38766; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/38766: makesyscalls.sh breaks build if mawk is used
Date: Tue, 27 May 2008 12:41:50 +0200
--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Does this patch help?
Martin
--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch
Index: makesyscalls.sh
===================================================================
RCS file: /cvsroot/src/sys/kern/makesyscalls.sh,v
retrieving revision 1.69
diff -u -r1.69 makesyscalls.sh
--- makesyscalls.sh 24 Apr 2008 11:51:19 -0000 1.69
+++ makesyscalls.sh 27 May 2008 10:39:35 -0000
@@ -119,6 +119,10 @@
' < $2 | $awk "
$toupper
BEGIN {
+ # create a NetBSD tag that does not get expanded when checking this
+ # script out of cvs
+ tag = \"$\" \"NetBSD\" \"$\"
+
# to allow nested #if/#else/#endif sets
savedepth = 0
# to track already processed syscalls
@@ -150,7 +154,7 @@
compatopts = \"$compatopts\"
"'
- printf "/* \$NetBSD\$ */\n\n" > sysdcl
+ printf "/* %s */\n\n",tag > sysdcl
printf "/*\n * System call switch table.\n *\n" > sysdcl
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
sysdcl
@@ -171,38 +175,38 @@
printf "#define\tns(type)\tn(type), s(type)\n\n", registertype > sysent
printf "struct sysent %s[] = {\n",switchname > sysent
- printf "/* \$NetBSD\$ */\n\n" > sysnames
+ printf "/* %s */\n\n",tag > sysnames
printf "/*\n * System call names.\n *\n" > sysnames
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
sysnames
printf "\n/*\n * System call prototypes.\n */\n\n" > sysprotos
- printf "/* \$NetBSD\$ */\n\n" > sysnumhdr
+ printf "/* %s */\n\n",tag > sysnumhdr
printf "/*\n * System call numbers.\n *\n" > sysnumhdr
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
sysnumhdr
- printf "/* \$NetBSD\$ */\n\n" > sysarghdr
+ printf "/* %s */\n\n",tag > sysarghdr
printf "/*\n * System call argument lists.\n *\n" > sysarghdr
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
sysarghdr
- printf "/* \$NetBSD\$ */\n\n" > rumpcalls
+ printf "/* %s */\n\n",tag > rumpcalls
printf "/*\n * System call marshalling for rump.\n *\n" > rumpcalls
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
rumpcalls
- printf "/* \$NetBSD\$ */\n\n" > rumpcallshdr
+ printf "/* %s */\n\n",tag > rumpcallshdr
printf "/*\n * System call protos in rump namespace.\n *\n" >
rumpcallshdr
printf " * DO NOT EDIT-- this file is automatically generated.\n" >
rumpcallshdr
}
NR == 1 {
sub(/ $/, "")
printf " * created from%s\n */\n\n", $0 > sysdcl
- printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"\$NetBSD\$\");\n\n"
> sysdcl
+ printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"%s\");\n\n",tag >
sysdcl
printf " * created from%s\n */\n\n", $0 > sysnames
- printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"\$NetBSD\$\");\n\n"
> sysnames
+ printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"%s\");\n\n",tag >
sysnames
printf " * created from%s\n */\n\n", $0 > rumpcalls
- printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"\$NetBSD\$\");\n\n"
> rumpcalls
+ printf "#include <sys/cdefs.h>\n__KERNEL_RCSID(0, \"%s\");\n\n",tag >
rumpcalls
printf "#include <sys/types.h>\n" > rumpcalls
printf "#include <sys/param.h>\n" > rumpcalls
printf "#include <sys/proc.h>\n" > rumpcalls
--BOKacYhQ+x31HxR3--
Home |
Main Index |
Thread Index |
Old Index