Module Name: src
Committed By: riastradh
Date: Tue Aug 5 19:49:13 UTC 2014
Modified Files:
src/sys/external/bsd/drm2/nouveau: nouveau2netbsd
Log Message:
Tweak heuristic for placing __KERNEL_RCSID in nouveau2netbsd.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/nouveau/nouveau2netbsd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/nouveau/nouveau2netbsd
diff -u src/sys/external/bsd/drm2/nouveau/nouveau2netbsd:1.1 src/sys/external/bsd/drm2/nouveau/nouveau2netbsd:1.2
--- src/sys/external/bsd/drm2/nouveau/nouveau2netbsd:1.1 Tue Aug 5 17:39:07 2014
+++ src/sys/external/bsd/drm2/nouveau/nouveau2netbsd Tue Aug 5 19:49:13 2014
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: nouveau2netbsd,v 1.1 2014/08/05 17:39:07 riastradh Exp $
+# $NetBSD: nouveau2netbsd,v 1.2 2014/08/05 19:49:13 riastradh Exp $
#
# $ /path/to/nouveau2netbsd > /path/to/files.nouveau.new
#
@@ -85,12 +85,17 @@ while read from to; do
cleantags "$to"
case $to in
*.c)
+ # Heuristically apply NetBSD RCS ids: a comment at the
+ # top of the file, and a __KERNEL_RCSID before the
+ # first cpp line, which, with any luck, should be the
+ # first non-comment line and lie between the copyright
+ # notice and the header.
awk '
BEGIN {
done = 0
printf("/*\t%c%s%c\t*/\n\n", "$","NetBSD","$")
}
- /^#include/ && !done {
+ /^#/ && !done {
printf("#include <sys/cdefs.h>\n")
printf("__KERNEL_RCSID(0, \"%c%s%c\");\n",
"$","NetBSD","$")