File: rules

package info (click to toggle)
debtags 2.1.5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 960 kB
  • sloc: python: 479; sh: 67; makefile: 34
file content (31 lines) | stat: -rwxr-xr-x 1,189 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
26
27
28
29
30
31
#!/usr/bin/make -f

# Define which release of the tagdb and vocabulary to be used.
DEBTAGS_TAGDB_GIT_ID = "f3dbab179dbfb1077fce323b8b02bf9a549098bb"
DEBTAGS_VOCABULARY_GIT_ID = "c8de9039711a35b560602dbeed72b7925d93db32"

%:
	dh $@ --with=python3 --buildsystem=pybuild --with bash-completion

override_dh_auto_build:
	help2man --name="Debian Package Tags support tools" --section=1 --no-info --opt-include=doc/debtags-man-hooks ./debtags > debian/debtags.1
	dh_auto_build

override_dh_fixperms:
	dh_fixperms
	test -e /usr/bin/dh_buildinfo && dh_buildinfo

# Custom rules used only during development

debsrc:
	debian/vercheck
	gbp buildpackage -S -us -uc
	rm -f ../$(RELEASE_PACKAGE)_$(VERSION)_source.changes

# Download the tags and vocabulary files for a new release.
#
release:
	curl https://anonscm.debian.org/cgit/debtags/tagdb.git/plain/tags?id=$(DEBTAGS_TAGDB_GIT_ID) | tagcoll copy | gzip -n9 > tags-current.gz
	curl https://anonscm.debian.org/cgit/debtags/vocabulary.git/plain/debian-packages?id=$(DEBTAGS_VOCABULARY_GIT_ID) > vocabulary
	curl https://anonscm.debian.org/cgit/debtags/vocabulary.git/plain/security-team?id=$(DEBTAGS_VOCABULARY_GIT_ID) >> vocabulary
	dch --release