automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} maint: consistently honor the UPDATE_COPYRIGHT_YEAR enviro


From: Stefano Lattarini
Subject: [FYI] {maint} maint: consistently honor the UPDATE_COPYRIGHT_YEAR environment variable
Date: Sat, 12 Jan 2013 11:21:57 +0100

* 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 <address@hidden>
---
 maintainer/maint.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/maintainer/maint.mk b/maintainer/maint.mk
index 69b1630..87df79f 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=`( \
-- 
1.8.1.rc3.192.g2d0029e




reply via email to

[Prev in Thread] Current Thread [Next in Thread]