Commit 30772335 authored by Ole Streicher's avatar Ole Streicher

Replace the swarp build date with the last changed date of configure.ac

parent b5337aec
From: Ole Streicher <olebole@debian.org>
Date: Sat, 30 Jul 2016 10:20:18 +0200
Subject: Replace the swarp build date with the last changed date of
configure.ac
This shall make the build reproducible.
---
swarp/configure.ac | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/swarp/configure.ac b/swarp/configure.ac
index 59f90f8..6c35210 100644
--- a/swarp/configure.ac
+++ b/swarp/configure.ac
@@ -34,9 +34,10 @@ AC_CONFIG_SRCDIR(src/makeit.c)
AC_CONFIG_AUX_DIR(autoconf)
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE
-date=`date +%Y-%m-%d`
-date2=`date +"%a %b %d %Y"`
-date3=`date +"%B %Y"`
+d0=`fgrep "Last modified" configure.ac | cut -d: -f2- | head -1 | sed "s+\(..\)/\(..\)/\(....\)+\\3-\\2-\\1+"`
+date=`date +%Y-%m-%d -d $d0`
+date2=`date +"%a %b %d %Y" -d $d0`
+date3=`date +"%B %Y" -d $d0`
AC_DEFINE_UNQUOTED(DATE, "$date", [Archive creation date])
AC_SUBST(PACKAGER, "Emmanuel Bertin")
AC_SUBST(DATE2, "$date2")
......@@ -2,3 +2,4 @@ Add-the-cpl-libraries-to-the-recips.so-and-the-test-progr.patch
Set-the-plugin-directory-so-that-esorex-and-python-cpl-ca.patch
Increase-tolerance-to-fix-FTBS-on-mips-mipsel64-and-ia64.patch
Force-serial-tests-to-get-better-verbose-output.patch
Replace-the-swarp-build-date-with-the-last-changed-date-o.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment