summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2005-06-04 23:18:33 +0000
committerdes <des@FreeBSD.org>2005-06-04 23:18:33 +0000
commit9230b25dd78459f5e14760d924dafc0ab3c1a555 (patch)
treea94dfa73883fe999c5347e1d445fda885dcd21e6 /crypto
parentc905ff90bdc25ad2ca2be08ce11993dca9cef2ae (diff)
downloadFreeBSD-src-9230b25dd78459f5e14760d924dafc0ab3c1a555.zip
FreeBSD-src-9230b25dd78459f5e14760d924dafc0ab3c1a555.tar.gz
Rewrite some of the regexps so they don't match themselves.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/FREEBSD-tricks11
1 files changed, 6 insertions, 5 deletions
diff --git a/crypto/openssh/FREEBSD-tricks b/crypto/openssh/FREEBSD-tricks
index 4ae5439..b7b6ece 100644
--- a/crypto/openssh/FREEBSD-tricks
+++ b/crypto/openssh/FREEBSD-tricks
@@ -1,19 +1,20 @@
# $FreeBSD$
# Shell code to remove FreeBSD tags before merging
-grep -rl '\$Fre.BSD:' . >tags
+grep -rl '\$Fre[e]BSD:' . >tags
cat tags | while read f ; do
- sed -i.orig -e '/\$Fre.BSD:/d' $f
+ 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): [^\$]*\$/\$FreeBSD\$/ && print'
+xargs perl -n -i.orig -e 'print; s/\$(Id|OpenBSD): [^\$]*\$/\$Fre[e]BSD\$/ && print'
# Shell code to reexpand FreeBSD tags
cat tags | while read f ; do
- id=$(cvs diff $f | grep '\$Fre.BSD:' | sed 's/.*\(\$Fre.BSD:.*\$\).*/\1/') ;
+ id=$(cvs diff $f | grep '\$Fre[e]BSD:' |
+ sed 's/.*\(\$Fre[e]BSD:.*\$\).*/\1/') ;
if [ -n "$id" ] ; then
- sed -i.orig -e "s@\\\$Fre.BSD\\\$@$id@" $f ;
+ sed -i.orig -e "s@\\\$Fre[e]BSD\\\$@$id@" $f ;
fi ;
done
OpenPOWER on IntegriCloud