(copyright-check): Use date +%Y in place of hard-coded 2005.
authorJim Meyering <jim@meyering.net>
Fri, 6 Jan 2006 16:49:10 +0000 (16:49 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 6 Jan 2006 16:49:10 +0000 (16:49 +0000)
Makefile.maint

index fced6c1..864c559 100644 (file)
@@ -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; }; \