8 DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
9 VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
10 DEBFLAVOR :=$(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2)
11 DEBPKGNAME :=$(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2)
13 override_dh_installchangelogs:
14 dh_installchangelogs debian/CHANGELOG
16 override_dh_auto_clean:
18 rm -rf debian/*.upstart
20 override_dh_installinit:
21 if dpkg-vendor --derives-from ubuntu ; then \
22 for i in *.upstart.in ; do \
23 MYPKG=`echo $i | cut -d. -f1` ; \
24 cp $MYPKG.upstart.in $MYPKG.upstart ; \
27 dh_installinit --error-handler=true
29 override_dh_gencontrol:
30 if dpkg-vendor --derives-from ubuntu ; then \
31 dh_gencontrol -- -T$(CURDIR)/debian/ubuntu_control_vars ; \
33 dh_gencontrol -- -T$(CURDIR)/debian/debian_control_vars ; \
37 dh_builddeb -- -Zxz -z9
41 quilt push install-missing-files.patch
42 git checkout MANIFEST.in
43 git ls-files --no-empty-directory --exclude-standard nova | grep -v '.py$$' | sed -n 's/.*/include &/gp' >> MANIFEST.in
48 git remote add upstream git://github.com/openstack/$(DEBPKGNAME).git || true
50 if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \
51 git archive --prefix=$(DEBPKGNAME)-$(VERSION)/ $(VERSION) | xz >../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \
53 if ! git checkout master ; then \
54 echo "No upstream branch: checking out" ; \
55 git checkout -b master upstream/master ; \
57 git checkout debian/experimental