File: rules

package info (click to toggle)
zconfig 2.7.1-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 896 kB
  • ctags: 769
  • sloc: python: 5,196; xml: 329; perl: 37; makefile: 32; sh: 1
file content (17 lines) | stat: -rwxr-xr-x 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh --with pydeb --with python-central $@

override_dh_install:
	dh_install
	# console scripts
	for script in debian/python-zconfig/usr/bin/*; do \
	  for py in $(shell pyversions -vr debian/control); do \
	    cat $$script |  sed -e "s,/usr/bin/python,/usr/bin/python$$py,g" > $$script$$py; \
	    chmod 755 $$script$$py; \
	  done; \
	  rm $$script; \
	done;
	# remove useless test
	rm debian/python-zconfig/usr/lib/python2.*/*-packages/ZConfig/tests/test_readme.py