svn commit: r275487 - stable/10/sys/conf
Xin LI
delphij at FreeBSD.org
Thu Dec 4 23:19:05 UTC 2014
Author: delphij
Date: Thu Dec 4 23:19:04 2014
New Revision: 275487
URL: https://svnweb.freebsd.org/changeset/base/275487
Log:
MFC r274458,274523:
Derive copyright year from src/COPYRIGHT.
Modified:
stable/10/sys/conf/newvers.sh
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/conf/newvers.sh
==============================================================================
--- stable/10/sys/conf/newvers.sh Thu Dec 4 23:17:35 2014 (r275486)
+++ stable/10/sys/conf/newvers.sh Thu Dec 4 23:19:04 2014 (r275487)
@@ -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' ${SYSDIR}/../COPYRIGHT)
# look for copyright template
for bsd_copyright in ../$b ../../$b ../../../$b /usr/src/$b /usr/$b
do
More information about the svn-src-all
mailing list