1# $FreeBSD$
2
3# Shell code to remove FreeBSD tags before merging
4grep -rl '\$Fre[e]BSD:' . | grep -v FREEBSD >tags
5cat tags | while read f ; do
6    sed -i.orig -e '/\$Fre[e]BSD:/d' $f
7done
8
9# Shell + Perl code to add FreeBSD tags wherever an OpenBSD or Id tag occurs
10cat tags |
11xargs perl -n -i.orig -e 'print; s/\$(Id|OpenBSD): [^\$]*/\$FreeBSD/ && print'
12
13# Diff against vendor branch
14svn diff --no-diff-deleted --old=$FSVN/vendor-crypto/openssh/dist/ --new=.
15