Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/nouveau Tweak heuristic for placing __...



details:   https://anonhg.NetBSD.org/src/rev/6f04b128aba4
branches:  trunk
changeset: 797983:6f04b128aba4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Aug 05 19:49:13 2014 +0000

description:
Tweak heuristic for placing __KERNEL_RCSID in nouveau2netbsd.

diffstat:

 sys/external/bsd/drm2/nouveau/nouveau2netbsd |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 5f48d405c21f -r 6f04b128aba4 sys/external/bsd/drm2/nouveau/nouveau2netbsd
--- a/sys/external/bsd/drm2/nouveau/nouveau2netbsd      Tue Aug 05 18:46:21 2014 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau2netbsd      Tue Aug 05 19:49:13 2014 +0000
@@ -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 @@
         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","$")



Home | Main Index | Thread Index | Old Index