[med-svn] [Git][med-team/soapdenovo2][master] d/rules: use SOURCE_DATE_EPOCH to determine the current package timestamp

Liubov Chuprikova gitlab at salsa.debian.org
Wed Jun 13 09:25:56 BST 2018


Liubov Chuprikova pushed to branch master at Debian Med / soapdenovo2


Commits:
aeca9345 by Liubov Chuprikova at 2018-06-13T10:24:36+02:00
d/rules: use SOURCE_DATE_EPOCH to determine the current package timestamp

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ soapdenovo2 (241+dfsg-3) UNRELEASED; urgency=medium
   * Point Vcs fields to salsa.debian.org
   * Standards-Version: 4.1.4
   * debhelper 11
+  * d/rules: use SOURCE_DATE_EPOCH to determine the current package timestamp
 
  -- Liubov Chuprikova <chuprikovalv at gmail.com>  Tue, 12 Jun 2018 17:35:14 +0200
 


=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,10 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-BUILD_DATE := $(shell TZ=UTC LC_ALL=C dpkg-parsechangelog | grep Date: | cut -d' ' -f2-7)
-export TZ=UTC
-export LC_ALL=C
-export BDATE=$(shell TZ=UTC LC_ALL=C date -d"$(BUILD_DATE)" +'%b %d %Y')
-export BTIME=$(shell TZ=UTC LC_ALL=C date -d"$(BUILD_DATE)" +'%T')
+
+include /usr/share/dpkg/pkg-info.mk
+export BDATE=$(shell TZ=UTC LC_ALL=C date --date="@$(SOURCE_DATE_EPOCH)" +'%b %d %Y')
+export BTIME=$(shell TZ=UTC LC_ALL=C date --date="@$(SOURCE_DATE_EPOCH)" +'%T')
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 



View it on GitLab: https://salsa.debian.org/med-team/soapdenovo2/commit/aeca934504964ca895cc3b0cf76708646e12801c

-- 
View it on GitLab: https://salsa.debian.org/med-team/soapdenovo2/commit/aeca934504964ca895cc3b0cf76708646e12801c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180613/501ff317/attachment-0001.html>


More information about the debian-med-commit mailing list