* debian/rules:

- check bash syntax at build time, to avoid LP: #1119446, #1119345 again
This commit is contained in:
Dustin Kirkland 2013-02-08 15:18:30 -06:00
commit e4f2120ba2
2 changed files with 5 additions and 2 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (5.34) unreleased; urgency=low byobu (5.34) unreleased; urgency=low
* UNRELEASED * debian/rules:
- check bash syntax at build time, to avoid LP: #1119446, #1119345 again
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 08 Feb 2013 14:48:02 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Fri, 08 Feb 2013 14:48:02 -0600

4
debian/rules vendored
View file

@ -3,8 +3,10 @@
dh $@ dh $@
override_dh_auto_build: override_dh_auto_build:
# Check syntax # Check python syntax
pep8 --verbose --repeat --ignore W191,E501 usr/bin/byobu-config usr/bin/byobu-select-session pep8 --verbose --repeat --ignore W191,E501 usr/bin/byobu-config usr/bin/byobu-select-session
# Check shell syntax
sh -n `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;`
# Check for bashisms in shell scripts # Check for bashisms in shell scripts
checkbashisms `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` || true checkbashisms `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` || true
dh_auto_build dh_auto_build