[Piuparts-commits] [piuparts] 01/07: Makefile: add check-whitespace target

Holger Levsen holger at layer-acht.org
Sat Jan 14 20:26:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 9cf44a0110b684f155c5ada6dbb7f91172116b94
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Jan 14 13:48:09 2017 +0100

    Makefile: add check-whitespace target
    
    search for trailing whitespace and space-tab combos
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 Makefile         | 5 +++++
 TODO             | 2 +-
 debian/changelog | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 30cb66b..53b360d 100644
--- a/Makefile
+++ b/Makefile
@@ -157,6 +157,11 @@ clean:
 
 
 # for maintainer convenience only
+check-whitespace:
+	grep -r --exclude-dir .git --exclude '*.pyc' --exclude '*.png' --exclude '*.ico' -E '\s+$$' . || echo "no trailing whitespace found"
+	grep -r --exclude-dir .git --exclude '*.pyc' --exclude '*.png' --exclude '*.ico' -P ' \t' . || echo "no space-tab combo found"
+
+# for maintainer convenience only
 tg-deps:
 	tg summary --graphviz | dot -T png -o deps.png
 	xli deps.png &
diff --git a/TODO b/TODO
index 22a5524..0e8b0e7 100644
--- a/TODO
+++ b/TODO
@@ -129,7 +129,7 @@ for 0.8x and later:
 
 for 0.8x and later:
 
-- find_default_debian_mirrors: 
+- find_default_debian_mirrors:
   - check whether find_default_debian_mirrors produces something useful if
     sources.list does not exist (and sources.list.d/*.list is there instead)
   - maybe just copy sources.list(.d/*) instead?
diff --git a/debian/changelog b/debian/changelog
index 0667227..37b1edc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,7 @@ piuparts (0.74) UNRELEASED; urgency=medium
   * piuparts-reports.py:
     - Mark arch:all packages with an :all suffix in package lists.
     - Report skipped tests.
+  * Makefile: Add check-whitespace target looking for trailing whitespace etc.
   * scripts/pre_install_database-server: Use default-mysql-* from stretch
     onwards.
   * scripts/post-{install,purge}-exceptions: Wait for dkms progress indicator

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list