hal/tools/linux Makefile.am,1.20,1.21

Danny Kukawka dkukawka at kemper.freedesktop.org
Wed May 17 15:24:19 PDT 2006


Update of /cvs/hal/hal/tools/linux
In directory kemper:/tmp/cvs-serv30578/tools/linux

Modified Files:
	Makefile.am 
Log Message:
2006-05-18  Danny Kukawka  <danny.kukawka at web.de>

        Added check for bash syntax in scipts to the new backend dirs.

        * tools/freebsd/Makefile.am:
        * tools/linux/Makefile.am:



Index: Makefile.am
===================================================================
RCS file: /cvs/hal/hal/tools/linux/Makefile.am,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- Makefile.am	14 May 2006 19:51:58 -0000	1.20
+++ Makefile.am	17 May 2006 22:24:17 -0000	1.21
@@ -22,3 +22,18 @@
 
 EXTRA_DIST = 90-hal.rules $(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;
+




More information about the hal-commit mailing list