Module: check_mk
Branch: master
Commit: 614ecc07c1ce98d7683ef7860eca8606da207dbb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=614ecc07c1ce98…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 19 21:45:38 2011 +0100
Remove trailing spaces from even more codelines
---
Makefile | 3 ++-
doc/helpers/df_magic_number.py | 2 +-
doc/helpers/headrify | 2 +-
doc/helpers/listtar | 6 +++---
doc/helpers/wato-migrate-1.2.0.sh | 2 +-
5 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index a490ee4..f850053 100644
--- a/Makefile
+++ b/Makefile
@@ -195,7 +195,8 @@ check:
healspaces:
@echo "Removing trailing spaces from code lines..."
@sed -ri 's/[ ]+$$//g' checkman/* modules/* checks/* $$(find -name Makefile) \
- livestatus/src/*{cc,c,h} web/htdocs/*.{py,css} web/htdocs/js/*.js
web/plugins/*/*.py
+ livestatus/src/*{cc,c,h} web/htdocs/*.{py,css} web/htdocs/js/*.js
web/plugins/*/*.py \
+ doc/helpers/* $(find -type f pnp-templates/*.php)
setup:
$(MAKE) dist
diff --git a/doc/helpers/df_magic_number.py b/doc/helpers/df_magic_number.py
index c13aba2..b290dbc 100755
--- a/doc/helpers/df_magic_number.py
+++ b/doc/helpers/df_magic_number.py
@@ -47,6 +47,6 @@ for level in [ .80, .85, .90, .95 ]:
print_levels(exp)
sys.stdout.write("-" * 80)
sys.stdout.write("\n")
-
+
diff --git a/doc/helpers/headrify b/doc/helpers/headrify
index 350d44f..4690902 100755
--- a/doc/helpers/headrify
+++ b/doc/helpers/headrify
@@ -73,7 +73,7 @@ headrify ()
thirdline="$(sed -n 3p < $file)"
shouldbe="$comment+---------------------------------------------------"
endline='.*Boston, MA 02110-1301 USA.'
-
+
if [ -n "$lastline" ] ; then endline="${lastline//\//\/}" ; fi
if [ "${firstline:0:20}" = "${shouldbe:0:20}" \
-o "${secondline:0:20}" = "${shouldbe:0:20}" \
diff --git a/doc/helpers/listtar b/doc/helpers/listtar
index 8b85371..dc1cd3e 100755
--- a/doc/helpers/listtar
+++ b/doc/helpers/listtar
@@ -3,7 +3,7 @@
VERSION=$(sed -n '/^VERSION.*= *\(.*\)/s//\1/p' < Makefile)
TAR=${1:-check_mk-$VERSION.tar.gz}
-if [ ! -e "$TAR" ] ; then
+if [ ! -e "$TAR" ] ; then
echo "Usage: $0 check_mk-...tar.gz" >&2
exit 1
fi
@@ -14,11 +14,11 @@ do
echo -n "$filename"
if [ "${filename:(-7)}" = ".tar.gz" ] ; then
echo :
- tar xzf $TAR --to-stdout "$filename" | tar tzvf -
+ tar xzf $TAR --to-stdout "$filename" | tar tzvf -
echo
elif [ "${filename:(-4)}" = ".tar" ] ; then
echo :
- tar xzf $TAR --to-stdout "$filename" | tar tvf -
+ tar xzf $TAR --to-stdout "$filename" | tar tvf -
echo
else
echo
diff --git a/doc/helpers/wato-migrate-1.2.0.sh b/doc/helpers/wato-migrate-1.2.0.sh
index 4578a80..8bb937a 100755
--- a/doc/helpers/wato-migrate-1.2.0.sh
+++ b/doc/helpers/wato-migrate-1.2.0.sh
@@ -78,7 +78,7 @@ do
rmdir -v "$thedir" 2>/dev/null || true
done
-
+
if which tree > /dev/null
then
echo "-----------------------------------------"