[MPlayer-cvslog] r23253 - trunk/TOOLS/checktree.sh
ivo
subversion at mplayerhq.hu
Mon May 7 19:34:31 CEST 2007
Author: ivo
Date: Mon May 7 19:34:31 2007
New Revision: 23253
Log:
test for tab characters
Modified:
trunk/TOOLS/checktree.sh
Modified: trunk/TOOLS/checktree.sh
==============================================================================
--- trunk/TOOLS/checktree.sh (original)
+++ trunk/TOOLS/checktree.sh Mon May 7 19:34:31 2007
@@ -19,6 +19,7 @@
_spaces=yes
_extensions=yes
_crlf=yes
+_tabs=no
_trailws=no
_rcsid=no
_oll=no
@@ -45,6 +46,7 @@ enable_all_tests() {
_spaces=yes
_extensions=yes
_crlf=yes
+ _tabs=yes
_trailws=yes
_rcsid=yes
_oll=yes
@@ -56,6 +58,7 @@ disable_all_tests() {
_spaces=no
_extensions=no
_crlf=no
+ _tabs=no
_trailws=no
_rcsid=no
_oll=no
@@ -96,6 +99,7 @@ for i in "$@"; do
printoption "spaces " "test for spaces in filenames" "$_spaces"
printoption "extensions" "test for uppercase extensions" "$_extensions"
printoption "crlf " "test for MSDOS line endings" "$_crlf"
+ printoption "tabs " "test for tab characters" "$_tabs"
printoption "trailws " "test for trailing whitespace" "$_trailws"
printoption "rcsid " "test for missing RCS Id's" "$_rcsid"
printoption "oll " "test for overly long lines" "$_oll"
@@ -170,6 +174,12 @@ for i in "$@"; do
-nocrlf)
_crlf=no
;;
+ -tabs)
+ _tabs=yes
+ ;;
+ -notabs)
+ _tabs=no
+ ;;
-trailws)
_trailws=yes
;;
@@ -259,6 +269,14 @@ fi
# -----------------------------------------------------------------------------
+if [ "$_tabs" = "yes" ]; then
+ printhead "checking for TAB characters ..."
+ TAB=`echo " " | tr ' ' '\011'`
+ grep $_grepopts "$TAB" $filelist
+fi
+
+# -----------------------------------------------------------------------------
+
if [ "$_trailws" = "yes" ]; then
printhead "checking for trailing whitespace ..."
grep $_grepopts "[[:space:]]\+$" $filelist
More information about the MPlayer-cvslog
mailing list