Delete newlines when autoformatting

This commit is contained in:
Austen Adler 2016-07-20 15:32:00 -04:00
parent b93bdc2993
commit 285e48e92f
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -18,4 +18,6 @@
OPTS=( --mode=java -xc --style=google -j -s2 -xG -S -K -N -xn -xl -n -p -H ) OPTS=( --mode=java -xc --style=google -j -s2 -xG -S -K -N -xn -xl -n -p -H )
GLOB=( src/**/*.java ) GLOB=( src/**/*.java )
astyle $OPTS $GLOB|\grep -P '^(?!Unchanged)' astyle $OPTS $GLOB|\grep -P '^(?!Unchanged)'
# Get rid of newlines
sed -i'' '/^\s*$/d' $GLOB
\cd ->/dev/null \cd ->/dev/null