aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cleanWhitespace.sh
blob: 43d717ced04027c3a9149ec6f5e303fdeea98f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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