1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#!/usr/bin/make -f
export PYBUILD_NAME=wheezy.template
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
mv debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME) debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python2
mv debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME) debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3
sed -i '1s,.*,#!/usr/bin/python2,' debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python2
sed -i '1s,.*,#!/usr/bin/python3,' debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3
.PHONY: override_dh_auto_install
|