mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
cf783db152
$FreeBSD$ tags and man page dates. Add a post-merge script which reapplies these changes. Run both scripts to normalize the existing code base. As a result, many files which should have had $FreeBSD$ tags but didn't now have them. Partly rewrite the upgrade instructions and remove the now outdated list of tricks.
20 lines
468 B
Bash
Executable File
20 lines
468 B
Bash
Executable File
#!/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
|