diff options
-rw-r--r-- | crypto/openssh/FREEBSD-tricks | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssh/FREEBSD-tricks b/crypto/openssh/FREEBSD-tricks index b7b6ece..fc0e1e7 100644 --- a/crypto/openssh/FREEBSD-tricks +++ b/crypto/openssh/FREEBSD-tricks @@ -1,14 +1,14 @@ # $FreeBSD$ # Shell code to remove FreeBSD tags before merging -grep -rl '\$Fre[e]BSD:' . >tags +grep -rl '\$Fre[e]BSD:' . | grep -v FREEBSD >tags cat tags | while read f ; do sed -i.orig -e '/\$Fre[e]BSD:/d' $f done # Shell + Perl code to add FreeBSD tags wherever an OpenBSD or Id tag occurs cat tags | -xargs perl -n -i.orig -e 'print; s/\$(Id|OpenBSD): [^\$]*\$/\$Fre[e]BSD\$/ && print' +xargs perl -n -i.orig -e 'print; s/\$(Id|OpenBSD): [^\$]*/\$FreeBSD/ && print' # Shell code to reexpand FreeBSD tags cat tags | while read f ; do |