diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-01-12 11:16:44 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-01-12 11:16:44 +0100 |
commit | b8e238a757e692ef1849035fbc69045807f3fe54 (patch) | |
tree | 8b2b68af5316bea187d9ac28d72be1f17596702c /maintainer | |
parent | fba16588f89f3a7d8a24034718e5f50204b2b0d8 (diff) | |
download | automake-b8e238a757e692ef1849035fbc69045807f3fe54.tar.gz |
maint: consistently honor the UPDATE_COPYRIGHT_YEAR environment variable
* maintainer/maint.mk (update-copyright): Here. The 'lib/update-copyright'
already honoured it, but some parts of our recipe didn't. This has caused
the incomplete copyright bump that was fixed by the previous patch.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'maintainer')
-rw-r--r-- | maintainer/maint.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/maintainer/maint.mk b/maintainer/maint.mk index 69b163048..87df79f8f 100644 --- a/maintainer/maint.mk +++ b/maintainer/maint.mk @@ -449,11 +449,17 @@ files_without_copyright += lib/mkinstalldirs # This script has an MIT-style license files_without_copyright += lib/install-sh +# The UPDATE_COPYRIGHT_YEAR environment variable is honoured by the +# 'lib/update-copyright' script. .PHONY: update-copyright update-copyright: $(AM_V_GEN)set -e; \ - current_year=`date +%Y` && test -n "$$current_year" \ - || { echo "$@: cannot get current year" >&2; exit 1; }; \ + if test -n "$$UPDATE_COPYRIGHT_YEAR"; then \ + current_year=$$UPDATE_COPYRIGHT_YEAR; \ + else \ + current_year=`date +%Y` && test -n "$$current_year" \ + || { echo "$@: cannot get current year" >&2; exit 1; }; \ + fi; \ sed -i "/^RELEASE_YEAR=/s/=.*$$/=$$current_year/" \ bootstrap.sh configure.ac; \ excluded_re=`( \ |