]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Set copyright year in Makefile.real.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Jun 2016 17:11:05 +0000 (19:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Aug 2016 12:03:44 +0000 (14:03 +0200)
Hopefully this helps to update the copyright year more timely in the
future. It also allows to pass this information to other commands in
the receipts of the Makefile should this become necessary.

Makefile.real
version.c

index 1385bb9f97a166f8659a4256fdfd2abe6fed894e..a226df1ba5713bc77b1744ed560c5eda0af6aa26 100644 (file)
@@ -19,6 +19,7 @@ uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
 uname_rs := $(shell uname -rs)
 cc_version := $(shell $(CC) --version | head -n 1)
 GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h)
+COPYRIGHT_YEAR := 2016
 
 ifeq ("$(origin O)", "command line")
        build_dir := $(O)
@@ -91,6 +92,7 @@ $(subst u,U,$(subst v,V,$(subst w,W,$(subst x,X,$(subst y,Y,\
 $(subst z,Z,$1))))))))))))))))))))))))))
 
 CPPFLAGS += -DBINDIR='"$(bindir)"'
+CPPFLAGS += -DCOPYRIGHT_YEAR='"$(COPYRIGHT_YEAR)"'
 CPPFLAGS += -DBUILD_DATE='"$(build_date)"'
 CPPFLAGS += -DUNAME_RS='"$(uname_rs)"'
 CPPFLAGS += -DCC_VERSION='"$(cc_version)"'
index 6cbb0534746197460f4aa75d2eb2caba1a4d4c0c..bc61f54bba03aaa5a3255c6831b1bf8d6e9d2324 100644 (file)
--- a/version.c
+++ b/version.c
@@ -43,7 +43,7 @@ const char *version_text(const char *pfx)
        static char buf[512];
 
        snprintf(buf, sizeof(buf) - 1, "%s\n"
-               "Copyright (C) 2002-2016 Andre Noll\n"
+               "Copyright (C) " COPYRIGHT_YEAR " Andre Noll\n"
                "This is free software with ABSOLUTELY NO WARRANTY."
                " See COPYING for details.\n"
                "Report bugs to <maan@tuebingen.mpg.de>.\n"