[pyevolve] 06/07: d/rules: Make the build reproducible

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Jul 14 20:00:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to annotated tag debian/0.6_rc1+svn398+dfsg-7
in repository pyevolve.

commit 6cc519178997e74e1182f0d1118d35cdf7fe73c5
Author: Juan Picca <jumapico at gmail.com>
Date:   Tue Jul 7 16:32:34 2015 +0200

    d/rules: Make the build reproducible
    
    Closes: #788403
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index b3e5614..d5153a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,8 @@ SVNREV = $(shell dpkg-parsechangelog -l$(PKGDIR)/changelog | \
 SVNURL = https://pyevolve.svn.sourceforge.net/svnroot/pyevolve/trunk/
 export UPNAME UPVER SVNURL SVNREV
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 %:
 	dh  $@ --with python2,sphinxdoc --buildsystem=pybuild
@@ -28,7 +30,7 @@ override_dh_auto_clean:
 # Override needed for building documentation; jquery link
 override_dh_auto_build:
 	dh_auto_build
-	cd docs && sphinx-build -E -a -b html ./source ./html
+	cd docs && sphinx-build -E -a -b html -D today="$(BUILD_DATE)" ./source ./html
 
 # Run the autopkgtest as unit test
 override_dh_auto_test:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyevolve.git



More information about the debian-science-commits mailing list