diff build-aux/git-version-gen @ 40208:f746878ee9be

git-version-gen: fix --version copyright year * build-aux/git-version-gen, build-aux/move-if-change (version): --version output copyright year is now taken from script year, so that it no longer needs to be updated by hand.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 05 Mar 2019 15:05:33 -0800
parents b06060465f09
children
line wrap: on
line diff
--- a/build-aux/git-version-gen	Mon Mar 04 08:35:35 2019 -0800
+++ b/build-aux/git-version-gen	Tue Mar 05 15:05:33 2019 -0800
@@ -72,9 +72,10 @@
 
 me=$0
 
+year=`expr "$scriptversion" : '\([^-]*\)'`
 version="git-version-gen $scriptversion
 
-Copyright 2011 Free Software Foundation, Inc.
+Copyright $year Free Software Foundation, Inc.
 There is NO warranty.  You may redistribute this software
 under the terms of the GNU General Public License.
 For more information about these matters, see the files named COPYING."