You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cleanWhitespace.sh 278B

1234567891011121314
  1. #!/bin/bash
  2. . `dirname $0`/sed.sh
  3. rootdir=`dirname $0`/..
  4. for javaFile in `find $rootdir -name "*.java"`
  5. do
  6. # Remove whitespace from empty rows
  7. $SED -i "s/^ [ ]*$//g" $javaFile
  8. # Remove trailing whitespace in javadoc
  9. $SED -i "s/^ \\([ ]*\\)\* $/\\1 \*/g" $javaFile
  10. done