diff options
author | Thomas Goirand <thomas@goirand.fr> | 2012-12-17 10:55:53 +0000 |
---|---|---|
committer | Thomas Goirand <thomas@goirand.fr> | 2012-12-17 10:56:23 +0000 |
commit | 94b4dccb285342cab3831603647625d52f96fab9 (patch) | |
tree | eba1fbfd87a8b102c472601b96dbdc692b70c1a9 /debian/rules | |
parent | 9836e013b4494b5e320c81ec4e3f766522639be2 (diff) | |
download | factory-boy-94b4dccb285342cab3831603647625d52f96fab9.tar factory-boy-94b4dccb285342cab3831603647625d52f96fab9.tar.gz |
Switching to openstack-pkg-tools packaging.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/debian/rules b/debian/rules index 8f89ae3..137b5c6 100755 --- a/debian/rules +++ b/debian/rules @@ -2,22 +2,9 @@ # export DH_VERBOSE=1 -DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') -VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//') -DEBFLAVOR :=$(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2) -DEBPKGNAME :=$(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2) +UPSTREAM_GIT = git://github.com/rbarrois/factory_boy.git + +include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --with python2 - -get-vcs-source: - git remote add upstream git://github.com/rbarrois/factory_boy.git || true - git fetch upstream - if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \ - git archive --prefix=$(DEBPKGNAME)-$(VERSION)/ $(VERSION) | xz >../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \ - fi - if ! git checkout master ; then \ - echo "No upstream branch: checking out" ; \ - git checkout -b master upstream/master ; \ - fi - git checkout debian/experimental |