[SCM] giada/master: Set BUILD_DATE to date from debian/changelog

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Fri Nov 6 21:39:09 UTC 2015


The following commit has been merged in the master branch:
commit 94c8da77170f65e46196fc97af5845629d22fb3c
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Fri Nov 6 22:00:34 2015 +0100

    Set BUILD_DATE to date from debian/changelog

diff --git a/debian/rules b/debian/rules
index 48f2758..a7cc037 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,9 @@ DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname
 UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 DFSG = dfsg1
 PKG = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
+DATE := $(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d")
 
+CPPFLAGS+=-DBUILD_DATE='"$(DATE)"'
 LDFLAGS+=-Wl,--as-needed
 
 %:

-- 
giada packaging



More information about the pkg-multimedia-commits mailing list