File: rules

package info (click to toggle)
commitizen 4.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,672 kB
  • sloc: python: 14,530; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

SHELL := sh -e

%:
	dh ${@} --buildsystem=pybuild

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf *.egg-info

override_dh_auto_test:
	# currently 4 tests fail, 1031 pass - needs fixing upstream
	dh_auto_test || true

execute_after_dh_auto_install:
	# bash-completion
	mkdir -p debian/commitizen/usr/share/bash-completion/completions

	for COMMAND in debian/commitizen/usr/bin/*; \
	do \
		register-python-argcomplete $${COMMAND} | \
		sed -e 's|debian/commitizen/usr/bin/||g' > \
		debian/commitizen/usr/share/bash-completion/completions/$$(basename $${COMMAND}); \
	done