From 9447bd9732613c5419611bcb2b8b304d748b62b6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 5 Mar 2019 15:05:33 -0800 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ build-aux/git-version-gen | 3 ++- build-aux/move-if-change | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96083f3ea7..e5ba15719e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-03-05 Paul Eggert + + 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. + 2019-03-04 Bruno Haible relocatable-prog: Use wrapper-free installation on Mac OS X, take 2. diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 3b70097336..45b5656e6f 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -72,9 +72,10 @@ scriptversion=2018-03-07.03; # UTC 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." diff --git a/build-aux/move-if-change b/build-aux/move-if-change index 9538fdbac2..9073f1a500 100755 --- a/build-aux/move-if-change +++ b/build-aux/move-if-change @@ -36,9 +36,10 @@ The variable CMPPROG can be used to specify an alternative to 'cmp'. Report bugs to ." +year=`expr "$VERSION" : '\([^-]*\)'` version=`expr "$VERSION" : '\([^ ]*\)'` version="move-if-change (gnulib) $version -Copyright (C) 2011 Free Software Foundation, Inc. +Copyright $year Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." -- 2.39.5