summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2020-04-29 12:41:52 +0200
committerTim Rühsen <tim.ruehsen@gmx.de>2020-05-01 07:54:54 +0200
commit5a58370864e04f5dbb05b0ae453e6fa592a93175 (patch)
tree58687a028891ef03bafbb1cd5e6e424e6ab93b5b
parent7c0c1e7772a190fd601bdc033952b19864abc242 (diff)
downloadgnutls-tmp-reproducible-build.tar.gz
New make target 'update-copyright-year'tmp-reproducible-build
We don't want to automatically update the copyright year as this prevents reproducible builds. Instead, 'make update-copyright-year' has to be executed at the start of each new year and the changes have to be pushed. Closes #980 Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rw-r--r--cfg.mk7
-rw-r--r--configure.ac4
-rw-r--r--src/args-std.def.in2
3 files changed, 7 insertions, 6 deletions
diff --git a/cfg.mk b/cfg.mk
index 4083338d3e..3205378767 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -43,7 +43,6 @@ local-checks-to-skip = sc_GPL_version sc_bindtextdomain \
sc_two_space_separator_in_usage
VC_LIST_ALWAYS_EXCLUDE_REGEX = ^maint.mk|gtk-doc.make|m4/pkg|doc/fdl-1.3.texi|src/.*\.bak|src/crywrap/|(devel/perlasm/|lib/accelerated/x86/|build-aux/|gl/|src/libopts/|tests/suite/ecore/|doc/protocol/).*$$
-update-copyright-env = UPDATE_COPYRIGHT_USE_INTERVALS=1
# Explicit syntax-check exceptions.
exclude_file_name_regexp--sc_copyright_check = ^./gnulib/.*$$
@@ -78,6 +77,12 @@ glimport:
echo "If everything looks well, commit the gnulib update with:"
echo " git commit -m "Update gnulib submodule" gnulib"
+# Update Copyright year in tools and docs
+
+update-copyright-year:
+ $(AM_V_at)$(SED) -i "s/\"2000-[0-9]\{4,\}\"/\"2000-`date +%Y`\"/g" src/args-std.def.in
+ $(AM_V_at)$(SED) -i "s/ 2001-[0-9]\{4,\} / 2001-`date +%Y` /g" doc/gnutls.texi
+
# Code Coverage
clang:
diff --git a/configure.ac b/configure.ac
index 2d0a42665e..2fe8dd6883 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1098,10 +1098,6 @@ AC_DEFINE([fread_file], [_gnutls_fread_file], [static lib rename])
AC_DEFINE([read_file], [_gnutls_read_file], [static lib rename])
AC_DEFINE([read_binary_file], [_gnutls_read_binary_file], [static lib rename])
-dnl Some variables needed in makefiles
-YEAR=`date +%Y`
-AC_SUBST([YEAR], $YEAR)
-
dnl configuration options for config file parsing (inih)
AC_DEFINE([INI_MAX_LINE], 2048, [inih maximum line size])
AC_DEFINE([INI_ALLOW_INLINE_COMMENTS], 1, [whether to allowin inline comments])
diff --git a/src/args-std.def.in b/src/args-std.def.in
index 93634a1857..4a92c448d2 100644
--- a/src/args-std.def.in
+++ b/src/args-std.def.in
@@ -10,7 +10,7 @@ no-misuse-usage;
export = '#include <gettext.h>';
copyright = {
- date = "2000-@YEAR@";
+ date = "2000-2020";
owner = "Free Software Foundation, and others";
author = "Nikos Mavrogiannopoulos, Simon Josefsson and others; "
"see /usr/share/doc/gnutls/AUTHORS for a complete list.";