1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Fix broken shell code.

This commit is contained in:
Dag-Erling Smørgrav 2003-09-19 11:29:51 +00:00
parent 44eca34adb
commit da26b3794a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120230

View File

@ -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 ;