X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=Makefile;h=b24d4f879bff99fe6eae2687a213fdfd4a9e2b25;hb=3f588cd77f13ae290b48cc360932a27be4f04496;hp=85b4b849d8638fe08da3de3897c14f1bc71c2260;hpb=ead4e8ab9578d34a9a4439cda1fce5f48f2b1c64;p=live-boot-grml.git diff --git a/Makefile b/Makefile index 85b4b84..b24d4f8 100644 --- a/Makefile +++ b/Makefile @@ -19,19 +19,24 @@ test: @echo " done." + @if [ ! -x "$$(which checkbashisms 2>/dev/null)" ]; \ + then \ + echo "W: checkbashisms - command not found"; \ + echo "I: checkbashisms can be optained from: "; \ + echo "I: http://git.debian.org/?p=devscripts/devscripts.git"; \ + echo "I: On Debian systems, checkbashisms can be installed with:"; \ + echo "I: apt-get install devscripts"; \ + exit 0; \ + fi + @echo -n "Checking for bashisms" @# We can't just fail yet on bashisms (FIXME) - @if [ -x /usr/bin/checkbashisms ]; \ - then \ - for SCRIPT in $(SCRIPTS); \ - do \ - checkbashisms -f -x $${SCRIPT} || true; \ - echo -n "."; \ - done; \ - else \ - echo "WARNING: skipping bashism test - you need to install devscripts."; \ - fi + @for SCRIPT in $(SCRIPTS); \ + do \ + checkbashisms -f -x $${SCRIPT} || true; \ + echo -n "."; \ + done @echo " done."