From 02b91d4829b759624dc66551120c6afcc9fa3f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 25 Aug 2014 13:04:35 +0200 Subject: [PATCH] Improve white-space handling in preprocess.sh script --- build/preprocess.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/preprocess.sh b/build/preprocess.sh index bdee8f0e..143ef861 100755 --- a/build/preprocess.sh +++ b/build/preprocess.sh @@ -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