From: IOhannes m zmölnig Date: Fri, 6 Nov 2015 21:00:34 +0000 (+0100) Subject: Set BUILD_DATE to date from debian/changelog X-Git-Tag: archive/raspbian/0.15.4+ds1-1+rpi1^2~185 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=94c8da77170f65e46196fc97af5845629d22fb3c;p=giada.git 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>.*/\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 %: