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/02 17:59:38 UTC

svn commit: r673427 - in /myfaces/myfaces-build-tools/trunk/other/scripts: ./ README.txt detab.sh

Author: skitching
Date: Wed Jul  2 08:59:37 2008
New Revision: 673427

URL: http://svn.apache.org/viewvc?rev=673427&view=rev
Log:
Create directory for useful scripts.
Add script to clean up whitespace in java source files.

Added:
    myfaces/myfaces-build-tools/trunk/other/scripts/
    myfaces/myfaces-build-tools/trunk/other/scripts/README.txt   (with props)
    myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh   (with props)

Added: myfaces/myfaces-build-tools/trunk/other/scripts/README.txt
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/other/scripts/README.txt?rev=673427&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/other/scripts/README.txt (added)
+++ myfaces/myfaces-build-tools/trunk/other/scripts/README.txt Wed Jul  2 08:59:37 2008
@@ -0,0 +1 @@
+This directory holds useful development scripts.

Propchange: myfaces/myfaces-build-tools/trunk/other/scripts/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 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=673427&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh (added)
+++ myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh Wed Jul  2 08:59:37 2008
@@ -0,0 +1,9 @@
+# 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.
+find . -name ".svn" -prune -o -name "*.java" -exec \
+  sed --in-place \
+    -e "s/\t/    /g"  \
+    -e "s/\s\s*$//"  \
+  {} \;

Propchange: myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/myfaces-build-tools/trunk/other/scripts/detab.sh
------------------------------------------------------------------------------
    svn:executable = *