summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules15
1 files changed, 6 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index 242a33e..f24ed3e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,9 @@ export DH_OPTIONS
NO_PROC=$(shell cat /proc/cpuinfo | grep processor | wc -l)
JAMCMDLINE = -q -fJambase -j$(NO_PROC) -sPREFIX=/usr -sDESTDIR=$(CURDIR)/debian/tmp -sREFSUBDIR=share/color/argyll/ref
+CHDATE=$(shell dpkg-parsechangelog -S Date)
+CRDATE=$(shell date -d "$(CHDATE)" "+%a %b %d %T %Y")
+
%:
dh $@
@@ -19,15 +22,9 @@ override_dh_auto_install:
#
# Make build results reproducible.
#
- cp $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.gam $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.tmp
- cat $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.tmp | grep -v CREATED >$(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.gam
- rm -f $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.tmp
- cp $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.cal $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.tmp
- cat $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.tmp | grep -v CREATED >$(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.cal
- rm -f $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.tmp
- cp $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.cal $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.tmp
- cat $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.tmp | grep -v CREATED >$(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.cal
- rm -f $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.tmp
+ sed -i 's/CREATED.*/CREATED $(CRDATE)/' $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/RefMediumGamut.gam
+ sed -i 's/CREATED.*/CREATED $(CRDATE)/' $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/linear.cal
+ sed -i 's/CREATED.*/CREATED $(CRDATE)/' $(CURDIR)/debian/tmp/usr/share/color/argyll/ref/strange.cal
override_dh_installdocs:
dh_installdocs