From caff6e6f1aef6d861ab31f6058f83c22618b1179 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 6 Apr 2013 10:11:07 +0200 Subject: [PATCH] Excluding Python scripts from shell script tests in top-level Makefile. --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 46f9eb32b..6b572f592 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,11 @@ test: @for SCRIPT in $(SCRIPTS); \ do \ - sh -n $${SCRIPT}; \ - echo -n "."; \ + if ! head -n1 $${SCRIPT} | grep -qs python; \ + then \ + sh -n $${SCRIPT}; \ + echo -n "."; \ + fi; \ done @echo " done." @@ -25,8 +28,11 @@ test: then \ for SCRIPT in $(SCRIPTS); \ do \ - checkbashisms -f -x $${SCRIPT}; \ - echo -n "."; \ + if ! head -n1 $${SCRIPT} | grep -qs python; \ + then \ + checkbashisms -f -x $${SCRIPT}; \ + echo -n "."; \ + fi; \ done; \ else \ echo "WARNING: skipping bashism test - you need to install devscripts."; \