Skip to content

Commit

Permalink
Use ChangeLog date instead of build date
Browse files Browse the repository at this point in the history
to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.

This date call works with GNU date and (some?) BSD date.
  • Loading branch information
bmwiedemann committed Sep 17, 2019
1 parent 53206dc commit c394aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -52,8 +52,8 @@ AC_SUBST(GST_MAJORMINOR)
dnl release year and date
DATE_STAMP=`head -n1 "${srcdir}/NEWS" | sed -e 's/^.*(\([[^\)]]*\)).*$/\1/'`
if test "$DATE_STAMP" == "XX.XXX.XXXX"; then
BT_RELEASE_YEAR=`date +%Y`
BT_RELEASE_DATE=`date +%Y-%m-%d`
BT_RELEASE_YEAR=`date -u -r ChangeLog +%Y`
BT_RELEASE_DATE=`date -u -r ChangeLog +%Y-%m-%d`
else
IFS="." read -r d m y <<< "$DATE_STAMP"
BT_RELEASE_YEAR="$y"
Expand Down

0 comments on commit c394aab

Please sign in to comment.