Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external use cleantags, instead of home grown copy.
details: https://anonhg.NetBSD.org/src/rev/660504b60c3a
branches: trunk
changeset: 770227:660504b60c3a
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 08 19:28:38 2011 +0000
description:
use cleantags, instead of home grown copy.
diffstat:
external/bsd/am-utils/dist/amd2netbsd | 10 ++--------
external/bsd/bind/dist/bind2netbsd | 11 ++---------
external/bsd/byacc/byacc2netbsd | 11 ++---------
external/bsd/cron/cron2netbsd | 10 ++--------
external/bsd/file/file2netbsd | 13 ++-----------
external/bsd/flex/flex2netbsd | 11 ++---------
external/bsd/libbind/dist/libbind2netbsd | 11 ++---------
external/bsd/libpcap/dist/libpcap2netbsd | 10 ++--------
external/bsd/ntp/ntp2netbsd | 10 ++--------
external/bsd/openldap/openldap2netbsd | 13 ++-----------
external/bsd/tcpdump/dist/tcpdump2netbsd | 10 ++--------
external/gpl3/gdb/gdb2netbsd | 21 ++-------------------
external/ibm-public/postfix/postfix2netbsd | 12 ++----------
external/mit/lua/dist/lua2netbsd | 14 ++------------
14 files changed, 28 insertions(+), 139 deletions(-)
diffs (truncated from 391 to 300 lines):
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/am-utils/dist/amd2netbsd
--- a/external/bsd/am-utils/dist/amd2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/am-utils/dist/amd2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: amd2netbsd,v 1.2 2009/03/20 20:30:52 christos Exp $
+# $NetBSD: amd2netbsd,v 1.3 2011/10/08 19:28:38 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -86,13 +86,7 @@
rm -f doc/am-utils.dvi doc/am-utils.info* doc/am-utils.ps
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- < $f > /tmp/amd1f$$ && mv /tmp/amd1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/bind/dist/bind2netbsd
--- a/external/bsd/bind/dist/bind2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/bind/dist/bind2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: bind2netbsd,v 1.4 2010/08/06 10:58:03 christos Exp $
+# $NetBSD: bind2netbsd,v 1.5 2011/10/08 19:28:38 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -76,14 +76,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header|Revision)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- < $f > /tmp/bind1f$$ && mv /tmp/bind1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/byacc/byacc2netbsd
--- a/external/bsd/byacc/byacc2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/byacc/byacc2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: byacc2netbsd,v 1.3 2011/09/10 21:32:25 christos Exp $
+# $NetBSD: byacc2netbsd,v 1.4 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -76,14 +76,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header|Revision)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- < $f > /tmp/byacc1f$$ && mv /tmp/byacc1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/cron/cron2netbsd
--- a/external/bsd/cron/cron2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/cron/cron2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: cron2netbsd,v 1.1 2010/05/06 23:19:56 christos Exp $
+# $NetBSD: cron2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -78,13 +78,7 @@
rm -f bitstring.h bitstring.3 putman.sh
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- < $f > /tmp/cron1f$$ && mv /tmp/cron1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
echo "cleaning up CVS residue."
(
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/file/file2netbsd
--- a/external/bsd/file/file2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/file/file2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: file2netbsd,v 1.1 2011/09/16 20:38:12 christos Exp $
+# $NetBSD: file2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2003, 2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -47,16 +47,7 @@
find "$FILE" -name .cvsignore -delete
### Remove the $'s around RCS tags
-find "$FILE" -type f -print | xargs egrep -l '\$(Id|Date|Header|Log|Revision)'\
- | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Date.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Log.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- $f > /tmp/file2$$ && mv /tmp/file2$$ $f && \
- echo removed RCS tag from $f
-done
+cleantags $d
### Add NetBSD RCS Id
find "$FILE" -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/flex/flex2netbsd
--- a/external/bsd/flex/flex2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/flex/flex2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: flex2netbsd,v 1.1 2009/10/26 01:34:43 christos Exp $
+# $NetBSD: flex2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -75,14 +75,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header|Revision)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- < $f > /tmp/flex1f$$ && mv /tmp/flex1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/libbind/dist/libbind2netbsd
--- a/external/bsd/libbind/dist/libbind2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/libbind/dist/libbind2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: libbind2netbsd,v 1.1 2009/04/12 15:39:53 christos Exp $
+# $NetBSD: libbind2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -76,14 +76,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header|Revision)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- < $f > /tmp/bind1f$$ && mv /tmp/bind1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -type f -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/libpcap/dist/libpcap2netbsd
--- a/external/bsd/libpcap/dist/libpcap2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/libpcap/dist/libpcap2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: libpcap2netbsd,v 1.1 2010/12/05 01:28:28 christos Exp $
+# $NetBSD: libpcap2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -74,13 +74,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- < $f > /tmp/amd1f$$ && mv /tmp/amd1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Clean up any CVS directories that might be around.
echo "cleaning up CVS residue."
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/ntp/ntp2netbsd
--- a/external/bsd/ntp/ntp2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/ntp/ntp2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: ntp2netbsd,v 1.1 2009/12/13 17:13:48 kardel Exp $
+# $NetBSD: ntp2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -99,13 +99,7 @@
find $d -name '.cvsignore*' -exec rm {} \;
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- < $f > /tmp/ntp1f$$ && mv /tmp/ntp1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Add our NetBSD RCS Id
find $d -name '*.[chly]' -print | while read c; do
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/openldap/openldap2netbsd
--- a/external/bsd/openldap/openldap2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/openldap/openldap2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: openldap2netbsd,v 1.1 2010/03/08 06:42:31 lukem Exp $
+# $NetBSD: openldap2netbsd,v 1.2 2011/10/08 19:28:38 christos Exp $
#
# Copyright (c) 1998, 1999, 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -33,16 +33,7 @@
d=. #XXX
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|OpenLDAP|FreeBSD|OpenBSD)' | \
-while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(OpenLDAP.*\) \$/\1/' \
- -e 's/\$\(FreeBSD.*\) \$/\1/' \
- -e 's/\$\(OpenBSD.*\) \$/\1/' \
- < $f > /tmp/openldap1f$$ && mv /tmp/openldap1f$$ $f && \
- echo removed \$RCS tag from $f
-done
-
+cleantags $d
### Add our NetBSD RCS Id
find $d -name '*.[chly]' -print | while read c; do
sed 1q < $c | grep -q '\$NetBSD' || (
diff -r d9f9a08c5962 -r 660504b60c3a external/bsd/tcpdump/dist/tcpdump2netbsd
--- a/external/bsd/tcpdump/dist/tcpdump2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/bsd/tcpdump/dist/tcpdump2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: tcpdump2netbsd,v 1.1 2010/12/05 05:14:00 christos Exp $
+# $NetBSD: tcpdump2netbsd,v 1.2 2011/10/08 19:28:39 christos Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -74,13 +74,7 @@
pax -rw * $d
### Remove the $'s around RCS tags
-find $d -type f -print | xargs egrep -l '\$(Id|Created|Header)' | while read f; do
- sed -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(Created.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- < $f > /tmp/amd1f$$ && mv /tmp/amd1f$$ $f && \
- echo removed \$RCS tag from $f
-done
+cleantags $d
### Clean up any CVS directories that might be around.
echo "cleaning up CVS residue."
diff -r d9f9a08c5962 -r 660504b60c3a external/gpl3/gdb/gdb2netbsd
--- a/external/gpl3/gdb/gdb2netbsd Sat Oct 08 19:20:50 2011 +0000
+++ b/external/gpl3/gdb/gdb2netbsd Sat Oct 08 19:28:38 2011 +0000
@@ -1,6 +1,6 @@
Home |
Main Index |
Thread Index |
Old Index