File: rules

package info (click to toggle)
kgb-bot 1.34-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 644 kB
  • ctags: 169
  • sloc: perl: 3,873; sh: 173; makefile: 29
file content (17 lines) | stat: -rwxr-xr-x 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@

override_dh_compress:
	dh_compress -Xexamples

PKG_VER := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/^Version: \(.\+\)-[^-]\+$$/\1/')
MOD_VER := $(shell perl -Ilib -MApp::KGB -e'print $$App::KGB::VERSION')
override_dh_auto_test:
	LANG=bg_BG.utf8 LC_ALL=bg_BG.utf8 dh_auto_test
	[ "$(PKG_VER)" = "$(MOD_VER)" ] \
	    || ( echo "Package version ($(PKG_VER)) doesn't match module version ($(MOD_VER))"; exit 1 )

override_dh_install:
	dh_install --fail-missing