Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cannot regenerate files from syscalls.master anymore ... awk problem



On Wed, 23 Jul 2008, Nicolas Joly wrote:
> I just noticed that i cannot regenerate files from syscalls.master
> files anymore ...

Please try this patch (which I have not tested).

Index: sys/kern/makesyscalls.sh
--- sys/kern/makesyscalls.sh    24 Apr 2008 11:51:19 -0000      1.69
+++ sys/kern/makesyscalls.sh    23 Jul 2008 14:07:48 -0000
@@ -150,7 +150,7 @@
        compatopts = \"$compatopts\"
        "'
 
-       printf "/* \$NetBSD\$ */\n\n" > sysdcl
+       printf "/* $" "NetBSD" "$ */\n\n" > sysdcl
        printf "/*\n * System call switch table.\n *\n" > sysdcl
        printf " * DO NOT EDIT-- this file is automatically generated.\n" > 
sysdcl
 
@@ -171,38 +171,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 "/* $" "NetBSD" "$ */\n\n" > 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 "/* $" "NetBSD" "$ */\n\n" > 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 "/* $" "NetBSD" "$ */\n\n" > 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 "/* $" "NetBSD" "$ */\n\n" > 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 "/* $" "NetBSD" "$ */\n\n" > 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, \"$" "NetBSD" 
"$\");\n\n" > 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, \"$" "NetBSD" 
"$\");\n\n" > 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, \"$" "NetBSD" 
"$\");\n\n" > rumpcalls
        printf "#include <sys/types.h>\n" > rumpcalls
        printf "#include <sys/param.h>\n" > rumpcalls
        printf "#include <sys/proc.h>\n" > rumpcalls


Home | Main Index | Thread Index | Old Index