Fix sed issue on non gnu sed computers by using perl

This commit is contained in:
Austen Adler 2016-07-22 15:35:20 -04:00
parent 4717100d78
commit a9ec38808f

View File

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