projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
798715d
)
Adding checkbashsms call to test target of the Makefile as suggested by Trent W....
author
Daniel Baumann
<daniel@debian.org>
Tue, 13 Nov 2007 10:30:49 +0000
(11:30 +0100)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:31:06 +0000
(17:31 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
3d7af5b
..
dd60498
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-5,11
+5,20
@@
TRANSLATIONS="it"
all: build
test:
all: build
test:
+ # Checking for syntax errors
set -e; for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \
do \
sh -n $$SCRIPT; \
done
set -e; for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \
do \
sh -n $$SCRIPT; \
done
+ # Checking for bashisms (temporary not failing, but only listing)
+ if [ -x /usr/bin/checkbashisms ]; \
+ then \
+ checkbashisms bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/* || true; \
+ else \
+ echo "bashism test skipped - you need to install devscripts."; \
+ fi
+
build:
install: test build
build:
install: test build