5 include /usr/share/openstack-pkg-tools/pkgos.make
10 DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
11 VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
12 DEBFLAVOR :=$(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2)
13 DEBPKGNAME :=$(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2)
15 override_dh_installchangelogs:
16 dh_installchangelogs debian/CHANGELOG
18 override_dh_auto_clean:
20 rm -rf debian/*.upstart
22 override_dh_installinit:
23 if dpkg-vendor --derives-from ubuntu ; then \
24 for i in *.upstart.in ; do \
25 MYPKG=`echo $i | cut -d. -f1` ; \
26 cp $MYPKG.upstart.in $MYPKG.upstart ; \
29 dh_installinit --error-handler=true
31 override_dh_gencontrol:
32 if dpkg-vendor --derives-from ubuntu ; then \
33 dh_gencontrol -- -T$(CURDIR)/debian/ubuntu_control_vars ; \
35 dh_gencontrol -- -T$(CURDIR)/debian/debian_control_vars ; \
39 dh_builddeb -- -Zxz -z9
43 quilt push install-missing-files.patch
44 git checkout MANIFEST.in
45 git ls-files --no-empty-directory --exclude-standard nova | grep -v '.py$$' | sed -n 's/.*/include &/gp' >> MANIFEST.in