diff options
| author | Daniel Baumann <daniel@debian.org> | 2010-07-26 23:05:09 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:53:27 +0100 |
| commit | 060e1748aefb7eea882607732511afd4043e938f (patch) | |
| tree | 4a3b093d01a79b5679bcd5937c261f25e7438af3 | |
| parent | 66d1235abf2dbc4062ed5bb7aef28d99a5a38eb2 (diff) | |
| download | live-boot-060e1748aefb7eea882607732511afd4043e938f.tar.gz live-boot-060e1748aefb7eea882607732511afd4043e938f.zip | |
Don't fail in Makefile when there's no checkbashism.
| -rw-r--r-- | Makefile | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -19,27 +19,24 @@ test: @echo " done." - @if [ ! -x "$$(which checkbashisms 2>/dev/null)" ]; \ + @# We can't just fail yet on bashisms (FIXME) + @if [ -x "$$(which checkbashisms 2>/dev/null)" ]; \ then \ + echo -n "Checking for bashisms"; \ + for SCRIPT in $(SCRIPTS); \ + do \ + checkbashisms -f -x $${SCRIPT} || true; \ + echo -n "."; \ + done; \ + echo " done."; \ + else \ 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) - @for SCRIPT in $(SCRIPTS); \ - do \ - checkbashisms -f -x $${SCRIPT} || true; \ - echo -n "."; \ - done - - @echo " done." - build: @echo "Nothing to build." |
