Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/dhcp make sure we add rcsids in all the files a...



details:   https://anonhg.NetBSD.org/src/rev/6a0b4c90a9ce
branches:  trunk
changeset: 785720:6a0b4c90a9ce
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 27 00:38:41 2013 +0000

description:
make sure we add rcsids in all the files and not in the headers

diffstat:

 external/bsd/dhcp/dhcp2netbsd |  36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)

diffs (57 lines):

diff -r d704315d8fa3 -r 6a0b4c90a9ce external/bsd/dhcp/dhcp2netbsd
--- a/external/bsd/dhcp/dhcp2netbsd     Wed Mar 27 00:38:07 2013 +0000
+++ b/external/bsd/dhcp/dhcp2netbsd     Wed Mar 27 00:38:41 2013 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#      $NetBSD: dhcp2netbsd,v 1.1 2013/03/24 15:54:29 christos Exp $
+#      $NetBSD: dhcp2netbsd,v 1.2 2013/03/27 00:38:41 christos Exp $
 #
 # Copyright (c) 2003, 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -52,18 +52,38 @@
        sed -e '1{/$NetBSD/!{i\
 /*     \$NetBSD\$      */\
 
-};}' -e \
-'/www.nominum.com/ {
-       N
-       N
-       a\
+};}' $c > /tmp/dhcp1$$
+mv /tmp/dhcp1$$ $c && echo did source mods for $c
+done
+
+find "$FILE" -type f -name '*.[cly]' -print | while read c; do
+sed -e \
+'/:\/\/www.isc.org/,/^ \*\// {
+    /^ \*\//a\
+\
 #include <sys/cdefs.h>\
-__RCSID("\$NetBSD\$\");\
-
+__RCSID("\$NetBSD\$");
 }' $c > /tmp/dhcp1$$
 mv /tmp/dhcp1$$ $c && echo did source mods for $c
 done
 
+ for f in dst/dst_api.c dst/dst_support.c dst/hmac_link.c dst/prandom.c \
+     omapip/inet_addr.c omapip/iscprint.c server/dhcpv6.c \
+     server/dhcpleasequery.c server/ldap.c server/mdb6.c; do
+       c=$FILE/$f
+       sed -E -e \
+'/\* TH(E|IS) SOFTWARE/,/^ \*\// {
+    /^ \*\//a\
+\
+#include <sys/cdefs.h>\
+__RCSID("\$NetBSD\$");\
+
+}' $c > /tmp/dhcp1$$
+    mv /tmp/dhcp1$$ $c && echo did source mods for $c
+done
+
+
+
 #### Add RCS tags to man pages
 find "$FILE" -type f -name '*.[0-9]' -print | while read m; do
        sed -e '1{/$NetBSD/!i\



Home | Main Index | Thread Index | Old Index