File: rules

package info (click to toggle)
byobu 5.133-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,872 kB
  • sloc: sh: 4,445; python: 477; makefile: 60; perl: 26; xml: 22
file content (24 lines) | stat: -rwxr-xr-x 714 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
%:
	dh $@ --with python3

override_dh_auto_build:
	# Check python syntax
	# pep8 gone from Debian
	#pep8 --verbose --repeat --ignore W191,E501,E117 usr/lib/byobu/include/config.py usr/lib/byobu/include/select-session.py
	# Check shell syntax
	sh -n `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;`
	# Check for bashisms in shell scripts
	checkbashisms `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` 2>&1 | grep "^possible bashism in " | grep -v "sleep only takes one integer" | grep -v "sourced script with arguments" || true
	dh_auto_build

override_dh_perl:
	dh_perl -d

autoconf: clean
	dh_testdir
	cp debian/changelog ChangeLog
	aclocal
	automake --add-missing --copy
	autoconf