summaryrefslogtreecommitdiffstats
path: root/sys/conf/newvers.sh
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-11-13 00:30:17 +0000
committerdelphij <delphij@FreeBSD.org>2014-11-13 00:30:17 +0000
commitae1d00c8d987855a940196c18d247c44e3dca2c2 (patch)
treed0512854947d0d3c11eb22bc2ad9256c4ead8ae9 /sys/conf/newvers.sh
parent605bfa5bb9fbd9c6f13b31f55c99d9e89a2dc358 (diff)
downloadFreeBSD-src-ae1d00c8d987855a940196c18d247c44e3dca2c2.zip
FreeBSD-src-ae1d00c8d987855a940196c18d247c44e3dca2c2.tar.gz
Derive copyright year from src/COPYRIGHT.
MFC after: 2 weeks
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 f323a0d..eb31300 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' ../../COPYRIGHT)
# look for copyright template
for bsd_copyright in ../$b ../../$b ../../../$b /usr/src/$b /usr/$b
do
OpenPOWER on IntegriCloud