You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/07/03 22:56:19 UTC
svn commit: r673800 -
/myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh
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*$//" \
{} \;