From 21906911ceb5b156c06cf78f9831a1042ab0f844 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 19 Sep 2003 11:29:51 +0000 Subject: Fix broken shell code. --- crypto/openssh/FREEBSD-tricks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto') diff --git a/crypto/openssh/FREEBSD-tricks b/crypto/openssh/FREEBSD-tricks index fdf78c7..4ae5439 100644 --- a/crypto/openssh/FREEBSD-tricks +++ b/crypto/openssh/FREEBSD-tricks @@ -2,7 +2,7 @@ # Shell code to remove FreeBSD tags before merging grep -rl '\$Fre.BSD:' . >tags -while read f < tags ; do +cat tags | while read f ; do sed -i.orig -e '/\$Fre.BSD:/d' $f done @@ -11,7 +11,7 @@ cat tags | xargs perl -n -i.orig -e 'print; s/\$(Id|OpenBSD): [^\$]*\$/\$FreeBSD\$/ && print' # Shell code to reexpand FreeBSD tags -while read f < tags ; do +cat tags | while read f ; do id=$(cvs diff $f | grep '\$Fre.BSD:' | sed 's/.*\(\$Fre.BSD:.*\$\).*/\1/') ; if [ -n "$id" ] ; then sed -i.orig -e "s@\\\$Fre.BSD\\\$@$id@" $f ; -- cgit v1.1