From: Robert S. Edmonds Date: Thu, 8 Aug 2013 23:53:08 +0000 (-0400) Subject: actually, generate lib/bup/_version.py ourselves X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=831f28926971d8596bc238b61f79a7a36a6ebc3a;p=packages%2Fb%2Fbup.git actually, generate lib/bup/_version.py ourselves --- diff --git a/Makefile b/Makefile index c542f97..614011b 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ lib/bup/_helpers$(SOEXT): \ .PHONY: lib/bup/_version.py lib/bup/_version.py: rm -f $@ $@.new - ./format-subst.pl $@.pre >$@.new + ./debian/gen_version_py.sh >$@.new mv $@.new $@ runtests: all runtests-python runtests-cmdline diff --git a/debian/_version.py b/debian/_version.py deleted file mode 100644 index f33e6b3..0000000 --- a/debian/_version.py +++ /dev/null @@ -1,4 +0,0 @@ - -COMMIT='22a8600f0ea8cddb07d00e253f4c37429cb09590' -NAMES='(tag: bup-0.25-rc2-126-g22a8600)' -DATE='2013-08-08 18:03:42 -0400' diff --git a/debian/gen_version_py.sh b/debian/gen_version_py.sh new file mode 100755 index 0000000..e22ddb2 --- /dev/null +++ b/debian/gen_version_py.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +VERSION="$(dpkg-parsechangelog | grep-dctrl -ensVersion -FSource .)" +DATE="$(date '+%Y-%m-%d %H:%M:%S %z')" + +echo +echo "COMMIT=''" +echo "NAMES='(tag: bup-$VERSION)'" +echo "DATE='$DATE'" diff --git a/debian/rules b/debian/rules index 8c125de..936d0ac 100755 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,3 @@ override_dh_auto_test: if [ "`dpkg-architecture -qDEB_BUILD_ARCH`" != "s390" ]; then \ dh_auto_test --parallel; \ fi - -git-update-versionpy: - make lib/bup/_version.py - mv lib/bup/_version.py debian/