summaryrefslogtreecommitdiffstats
path: root/sys/conf/newvers.sh
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-12-04 23:19:04 +0000
committerdelphij <delphij@FreeBSD.org>2014-12-04 23:19:04 +0000
commit36b0a2ac496a95bdf18a446e19acfe584158c076 (patch)
tree0fa40b34c873020d6e271405f175f18176ad33df /sys/conf/newvers.sh
parent0c96bfd67d736e0780c2a92fb19dca4e0b27111a (diff)
downloadFreeBSD-src-36b0a2ac496a95bdf18a446e19acfe584158c076.zip
FreeBSD-src-36b0a2ac496a95bdf18a446e19acfe584158c076.tar.gz
MFC r274458,274523:
Derive copyright year from src/COPYRIGHT.
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r--sys/conf/newvers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 0c1c52b..e66065a 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -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
OpenPOWER on IntegriCloud