myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r673800 - /myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh
Date Thu, 03 Jul 2008 20:56:19 GMT
Author: skitching
Date: Thu Jul  3 13:56:18 2008
New Revision: 673800

URL: http://svn.apache.org/viewvc?rev=673800&view=rev
Log:
Change to only fix tabs; trailing whitespace is left alone.

Modified:
    myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh

Modified: myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh?rev=673800&r1=673799&r2=673800&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh (original)
+++ myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh Thu Jul  3 13:56:18 2008
@@ -1,9 +1,10 @@
 # Unix/Linux shell script to clean up whitespace in all .java files in a directory.
 #
 # All tabs found are replaced with 4 spaces.
-# All trailing whitespace on lines is removed.
+#
+# Add the following to also remove trailing whitespace from all lines:
+#    -e "s/\s\s*$//"  \
 find . -name ".svn" -prune -o -name "*.java" -exec \
   sed --in-place \
     -e "s/\t/    /g"  \
-    -e "s/\s\s*$//"  \
   {} \;



Mime
View raw message