hal/tools Makefile.am,1.25,1.26
Danny Kukawka
dkukawka at freedesktop.org
Sun Dec 18 09:23:07 PST 2005
Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv10369/tools
Modified Files:
Makefile.am
Log Message:
2005-12-18 Danny Kukawka <danny.kukawka at web.de>
* tools/Makefile.am: added simple check of scripts for correct bash
syntax to 'make distcheck'
Index: Makefile.am
===================================================================
RCS file: /cvs/hal/hal/tools/Makefile.am,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Makefile.am 12 Dec 2005 22:15:57 -0000 1.25
+++ Makefile.am 18 Dec 2005 17:23:05 -0000 1.26
@@ -60,5 +60,20 @@
EXTRA_DIST=$(man_MANS) $(MAN_IN_FILES) gen-libgphoto-hal-fdi $(script_SCRIPTS)
+check:
+ for f in $(script_SCRIPTS); do \
+ echo -n "Validate bash syntax in $$f : "; \
+ bash -n $(srcdir)/$$f 2> bash.error;\
+ if test -s bash.error; then \
+ echo failed; \
+ cat bash.error; \
+ rm -f bash.error; \
+ exit 1; \
+ else \
+ echo ok; \
+ rm -f bash.error; \
+ fi; \
+ done;
+
clean-local :
rm -f *~
More information about the hal-commit
mailing list