summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: f959ab39f6ac0a7a3473692c626dcccb350bb328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

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

execute_after_dh_auto_install:
	# bash-completion
	mkdir -p debian/gita/usr/share/bash-completion/completions
	cp .gita-completion.bash debian/gita/usr/share/bash-completion/completions/gita

	# manpage
	mkdir -p debian/gita/usr/share/man/man1
	PYTHONPATH=debian/gita/usr/lib/$$(py3versions -d)/dist-packages \
		help2man --no-discard-stderr --name 'Manage many git repos' \
		debian/gita/usr/bin/gita > debian/gita/usr/share/man/man1/gita.1

override_dh_auto_test:
	# disabled