[Debian-ha-commits] [csync2] 01/01: Fix pdf to make the package reproducible
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Thu Jun 23 10:26:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository csync2.
commit 8497ad80bf88ca723caf238ae091692836f58431
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Thu Jun 23 12:15:44 2016 +0200
Fix pdf to make the package reproducible
---
debian/rules | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/debian/rules b/debian/rules
index c892808..919a647 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,16 @@ override_dh_auto_configure:
override_dh_autoreconf:
dh_autoreconf ./autogen.sh
+DEB_DATE := $(shell dpkg-parsechangelog -S date)
+PDF_DATE := $(shell date -ud '$(DEB_DATE)' +D:%Y%m%d%H%M%SZ)
+
+override_dh_auto_build:
+ dh_auto_build
+ sed -e "s|^/CreationDate (D:[0-9]*Z)$$|/CreationDate ($(PDF_DATE))|" \
+ -e "s|^/ModDate (D:[0-9]*Z)$$|/ModDate ($(PDF_DATE))|" \
+ -e "/\/ID /d" \
+ -i doc/csync2_paper.pdf
+
override_dh_installchangelogs:
dh_installchangelogs
rm debian/csync2/usr/share/doc/csync2/ChangeLog
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/csync2.git
More information about the Debian-HA-Commits
mailing list