+++ /dev/null
-Description: set version string to that of the git archive
-Author: Jon Dowland <jmtd@debian.org>
-Last-Update: 2011-12-05
-
-The upstream repo features these format strings in this file. The
-package "orig.tar.gz" file is created via "git archive" — which
-expands the format strings. Therefore, there is an immediate
-disparity between the orig.tar.gz contents and a bup checkout. In
-order to make building-from-repo and building-from-orig.tar the
-same, patch it back to the original state.
-
---- a/lib/bup/_version.py.pre~ 2011-11-04 17:55:15.000000000 +0000
-+++ b/lib/bup/_version.py.pre 2011-12-05 15:14:41.889885203 +0000
-@@ -1,4 +1,4 @@
-
--COMMIT='8953dc8d911844ae5c5764ac542811e95e592fe4'
--NAMES=' (origin/master, origin/HEAD, master)'
--DATE='2011-11-04 13:55:15 -0400'
-+COMMIT='$Format:%H$'
-+NAMES='$Format:%d$'
-+DATE='$Format:%ci$'
#!/usr/bin/make -f
override_dh_auto_configure:
+ mv lib/bup/_version.py.pre lib/bup/_oldversion.py.pre
+ cp -p debian/_version.py.pre lib/bup
./configure
override_dh_auto_clean:
-rm config/config.cmd config/config.h config/config.log config/config.mak config/config.md config/config.sub config/config.vars
dh_auto_clean
+ if test -f lib/bup/_oldversion.py.pre; then \
+ mv lib/bup/_oldversion.py.pre lib/bup/_version.py.pre; \
+ fi
%:
dh $@