From: Andre Noll Date: Sun, 26 Jun 2016 17:11:05 +0000 (+0200) Subject: Set copyright year in Makefile.real. X-Git-Tag: v0.5.7~34 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d5df5f39e52c8d0730014322a251a85607ddd603;p=paraslash.git Set copyright year in Makefile.real. 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. --- diff --git a/Makefile.real b/Makefile.real index 1385bb9f..a226df1b 100644 --- a/Makefile.real +++ b/Makefile.real @@ -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)"' diff --git a/version.c b/version.c index 6cbb0534..bc61f54b 100644 --- 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 .\n"