~vcs-imports/fai/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: mt
  • Date: 2011-09-10 21:37:19 UTC
  • Revision ID: svn-v4:ba5ec265-b0fb-0310-8e1a-cf9e4c2b1591:trunk:6658
Using shopt -s extglob won't work because bash fails with syntax error before

Use egrep instead of bash magic instead. As positive side effects avoids hacks
in syntax check during build and no need for lintian override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        @echo -n "Checking for shell syntax errors"; \
47
47
        for SCRIPT in $(BASH_SCRIPTS) $(SHELL_SCRIPTS); do \
48
48
                test -r $${SCRIPT} || continue ; \
49
 
                bash -O extglob -n $${SCRIPT} || exit ; \
 
49
                bash -n $${SCRIPT} || exit ; \
50
50
                echo -n "."; \
51
51
        done; \
52
52
        echo " done."; \