File: rules

package info (click to toggle)
optcomplete 1.2-10
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 168 kB
  • ctags: 106
  • sloc: python: 558; sh: 13; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYVERSIONS := $(shell pyversions -vr)

include /usr/share/cdbs/1/rules/debhelper.mk

binary-install/python-optcomplete::
	for v in $(PYVERSIONS); do \
	  mkdir -p $(CURDIR)/debian/python-optcomplete/usr/lib/python$$v/site-packages; \
	  install -m 0644 lib/python/optcomplete.py $(CURDIR)/debian/python-optcomplete/usr/lib/python$$v/site-packages; \
	done
	dh_pycentral -ppython-optcomplete
	install -m 0644 etc/optcomplete.bash $(CURDIR)/debian/python-optcomplete/etc/bash_completion.d/optcomplete