Derive copyright year from src/COPYRIGHT.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-11-13 00:30:17 +00:00
parent ad15cc59e9
commit efda9da6e6

View File

@ -52,7 +52,7 @@ else
fi
b=share/examples/etc/bsd-style-copyright
year=`date '+%Y'`
year=$(sed -Ee '/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ../../COPYRIGHT)
# look for copyright template
for bsd_copyright in ../$b ../../$b ../../../$b /usr/src/$b /usr/$b
do