File: rules

package info (click to toggle)
kgb-bot 1.62-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 788 kB
  • sloc: perl: 4,836; sh: 173; makefile: 27
file content (15 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
MOD_VER := $(shell perl -Ilib -MApp::KGB -e'print $$App::KGB::VERSION')

%:
	dh $@

override_dh_auto_configure:
	[ "$(DEB_VERSION_UPSTREAM)" = "$(MOD_VER)" ] \
	    || ( echo "Package version ($(DEB_VERSION_UPSTREAM)) doesn't match module version ($(MOD_VER))"; exit 1 )
	dh_auto_configure

override_dh_auto_test:
	LANG=bg_BG.utf8 LC_ALL=bg_BG.utf8 dh_auto_test