vaadin-framework/scripts/cleanWhitespace.sh
Artur Signell 7f80616bec Scripts for removing trailing whitespace
Change-Id: I938c57509bf6be34ee8a6f22edd7f8e0a43ee3bd
2016-08-18 08:24:55 +00:00

15 行
278 B
Bash
可执行文件

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