summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/FREEBSD-tricks
blob: 480bffc1db19d90e9680228d5143d39ee428d1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $FreeBSD$

# Shell code to remove FreeBSD tags before merging
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): [^\$]*/\$FreeBSD/ && print'

# Diff against vendor branch
svn diff --no-diff-deleted --old=$FSVN/vendor-crypto/openssh/dist/ --new=.
OpenPOWER on IntegriCloud