summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/freebsd-pre-merge.sh
blob: 2db9fd8f13668946e52b1d47f98116393e0daad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# $FreeBSD$
#

find . -type f -name '*.[1-9ch]' | cut -c 3- | \
while read f ; do
	svn propget svn:keywords $f | grep -q . && echo $f
done >keywords
xargs perl -n -i -e '
	$strip = $ARGV if /\$(Id|OpenBSD):.*\$/;
	print unless ($strip eq $ARGV && /\$FreeBSD.*\$/);
' <keywords

find . -type f -name '*.[1-9]' | cut -c 3- | \
	xargs grep -l '^\.Dd ' . >mdocdates
xargs perl -p -i -e '
	s/^\.Dd (\w+) (\d+), (\d+)$/.Dd \$Mdocdate: $1 $2 $3 \$/;
' <mdocdates
OpenPOWER on IntegriCloud