Module Name: src
Committed By: christos
Date: Wed Mar 27 00:38:42 UTC 2013
Modified Files:
src/external/bsd/dhcp: dhcp2netbsd
Log Message:
make sure we add rcsids in all the files and not in the headers
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/dhcp/dhcp2netbsd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcp/dhcp2netbsd
diff -u src/external/bsd/dhcp/dhcp2netbsd:1.1 src/external/bsd/dhcp/dhcp2netbsd:1.2
--- src/external/bsd/dhcp/dhcp2netbsd:1.1 Sun Mar 24 11:54:29 2013
+++ src/external/bsd/dhcp/dhcp2netbsd Tue Mar 26 20:38:41 2013
@@ -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 @@ find "$FILE" -type f -name '*.[chly]' -p
sed -e '1{/$NetBSD/!{i\
/* \$NetBSD\$ */\
-};}' -e \
-'/www.nominum.com/ {
- N
- N
- a\
-#include <sys/cdefs.h>\
-__RCSID("\$NetBSD\$\");\
+};}' $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\$");
}' $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\