From e4f2120ba23eaf2c352323606c52cf132e95c76f Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 8 Feb 2013 15:18:30 -0600 Subject: [PATCH] * debian/rules: - check bash syntax at build time, to avoid LP: #1119446, #1119345 again --- debian/changelog | 3 ++- debian/rules | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2a1ec9f6..7e61b413 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ byobu (5.34) unreleased; urgency=low - * UNRELEASED + * debian/rules: + - check bash syntax at build time, to avoid LP: #1119446, #1119345 again -- Dustin Kirkland Fri, 08 Feb 2013 14:48:02 -0600 diff --git a/debian/rules b/debian/rules index 2278388b..42908d06 100755 --- a/debian/rules +++ b/debian/rules @@ -3,8 +3,10 @@ dh $@ override_dh_auto_build: - # Check syntax + # Check python syntax 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 checkbashisms `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` || true dh_auto_build