Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/cleantags kill the space so we can turn $Foo$ to Foo
details: https://anonhg.NetBSD.org/src/rev/745bd1bc3743
branches: trunk
changeset: 772243:745bd1bc3743
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 25 23:31:22 2011 +0000
description:
kill the space so we can turn $Foo$ to Foo
diffstat:
usr.bin/cleantags/cleantags.sh | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (45 lines):
diff -r be9388ca5974 -r 745bd1bc3743 usr.bin/cleantags/cleantags.sh
--- a/usr.bin/cleantags/cleantags.sh Sun Dec 25 23:29:34 2011 +0000
+++ b/usr.bin/cleantags/cleantags.sh Sun Dec 25 23:31:22 2011 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: cleantags.sh,v 1.1 2011/10/08 19:16:08 christos Exp $
+# $NetBSD: cleantags.sh,v 1.2 2011/12/25 23:31:22 christos Exp $
# Remove the $'s from rcs tags
PROG="$(basename "$0")"
@@ -8,20 +8,20 @@
dosed() {
sed \
- -e 's/\$\(Author.*\) \$/\1/' \
- -e 's/\$\(Date.*\) \$/\1/' \
- -e 's/\$\(CVSHeader.*\) \$/\1/' \
- -e 's/\$\(Header.*\) \$/\1/' \
- -e 's/\$\(Id.*\) \$/\1/' \
- -e 's/\$\(LocalId.*\) \$/\1/' \
- -e 's/\$\(Locker.*\) \$/\1/' \
- -e 's/\$\(Log.*\) \$/\1/' \
- -e 's/\$\(Name.*\) \$/\1/' \
- -e 's/\$\(RCSfile.*\) \$/\1/' \
- -e 's/\$\(Revision.*\) \$/\1/' \
- -e 's/\$\(Source.*\) \$/\1/' \
- -e 's/\$\(State.*\) \$/\1/' \
- -e 's/\$\(NetBSD.*\) \$/\1/' \
+ -e 's/\$\(Author.*\)\$/\1/' \
+ -e 's/\$\(Date.*\)\$/\1/' \
+ -e 's/\$\(CVSHeader.*\)\$/\1/' \
+ -e 's/\$\(Header.*\)\$/\1/' \
+ -e 's/\$\(Id.*\)\$/\1/' \
+ -e 's/\$\(LocalId.*\)\$/\1/' \
+ -e 's/\$\(Locker.*\)\$/\1/' \
+ -e 's/\$\(Log.*\)\$/\1/' \
+ -e 's/\$\(Name.*\)\$/\1/' \
+ -e 's/\$\(RCSfile.*\)\$/\1/' \
+ -e 's/\$\(Revision.*\)\$/\1/' \
+ -e 's/\$\(Source.*\)\$/\1/' \
+ -e 's/\$\(State.*\)\$/\1/' \
+ -e 's/\$\(NetBSD.*\)\$/\1/' \
"$1" > "/tmp/$PROG$$" && mv "/tmp/$PROG$$" "$1"
if $verbose
then
Home |
Main Index |
Thread Index |
Old Index