mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Improve white-space handling in preprocess.sh script
This commit is contained in:
parent
a564480522
commit
02b91d4829
1 changed files with 3 additions and 1 deletions
|
@ -39,4 +39,6 @@ if [ $1 = "stripped" ]; then FLAGS="-c"; else FLAGS=""; fi
|
|||
|
||||
eval "$COMMAND $FLAGS" > $4
|
||||
# Now convert 4 spaces to tabs, to shave of some bytes (quite a few KB actually)
|
||||
unexpand -t 4 $4 > "$4-tabs" && mv "$4-tabs" $4
|
||||
unexpand -t 4 -a $4 > "$4-tabs" && mv "$4-tabs" $4
|
||||
# Remove trailing white-space on each line
|
||||
perl -p -i -e "s/[ \t]*$//g" $4
|
||||
|
|
Loading…
Reference in a new issue