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

Jaromír Mikeš mira.mikes at gmail.com
Sun Nov 15 06:09:02 UTC 2015


2015-11-06 22:39 GMT+01:00  <umlaeute at users.alioth.debian.org>:
> 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

Hi IOhannes,

for what is this needed?

best regards

mira



More information about the pkg-multimedia-maintainers mailing list