From: Jim Meyering Date: Fri, 6 Jan 2006 16:49:10 +0000 (+0000) Subject: (copyright-check): Use date +%Y in place of hard-coded 2005. X-Git-Tag: v6.0~952 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e140557e907f9993f4f1adf7e386dabb0c9b010;p=thirdparty%2Fcoreutils.git (copyright-check): Use date +%Y in place of hard-coded 2005. --- diff --git a/Makefile.maint b/Makefile.maint index fced6c1219..864c5591aa 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -399,7 +399,7 @@ v_etc_file = lib/version-etc.c # Make sure that the copyright date in $(v_etc_file) is up to date. copyright-check: @if test -f $(v_etc_file); then \ - grep 'enum { COPYRIGHT_YEAR = 2005 };' $(v_etc_file) \ + grep 'enum { COPYRIGHT_YEAR = '$$(date +%Y)' };' $(v_etc_file) \ >/dev/null \ || { echo 'out of date copyright in $(v_etc_file); update it' 1>&2; \ exit 1; }; \