[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.4-7-g0204ee6

Damyan Ivanov dmn at debian.org
Fri Dec 18 05:39:57 UTC 2009


The following commit has been merged in the master branch:
commit de3393bee53aee470985d441f89f19ac2df428ed
Author: Damyan Ivanov <dmn at debian.org>
Date:   Fri Dec 18 07:38:09 2009 +0200

    rules: add small test suite for all shell scripts

diff --git a/debian/changelog b/debian/changelog
index 2d50d62..af52f3b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ eeepc-acpi-scripts (1.1.5) unstable; urgency=high
 
   [ Damyan Ivanov ]
   * add DMUA flag
+  * rules: add small test suite for all shell scripts
 
  -- Darren Salt <linux at youmustbejoking.demon.co.uk>  Fri, 18 Dec 2009 00:00:00 +0000
 
diff --git a/debian/rules b/debian/rules
index 3d9d41c..db23e1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,14 @@ clean:
 	rm -f build-stamp
 	dh_clean
 
+build: build-stamp
+build-stamp:
+	for f in `grep -r -E -l '^#! ?/bin/sh' etc lib` *.sh; do \
+	    echo "Checking $$f"; \
+	    sh -n $$f; \
+	done
+	touch $@
+
 install: build
 	dh_testdir
 	dh_testroot

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list