From cd106a7eb6f66ae5f7f6b27c5af7102cc02d2bc1 Mon Sep 17 00:00:00 2001 From: Wliu Date: Wed, 4 Jun 2014 21:17:40 -0400 Subject: [PATCH] Add better spacing to compile.sh --- plugins/compile.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/compile.sh b/plugins/compile.sh index 35c2c0df..cc65341b 100755 --- a/plugins/compile.sh +++ b/plugins/compile.sh @@ -5,18 +5,21 @@ test -e compiled || mkdir compiled if [[ $# -ne 0 ]] then - for i in "$@"; - do - smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`"; - echo -n "Compiling $i..."; - ./spcomp $i -ocompiled/$smxfile + for sourcefile in "$@"; + do + smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"; + echo -e "\nCompiling $sourcefile..."; + ./spcomp $i -ocompiled/$smxfile done else for sourcefile in *.sp do smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`" - echo -n "Compiling $sourcefile ..." + echo -e "\nCompiling $sourcefile ..." ./spcomp $sourcefile -ocompiled/$smxfile done fi + +echo -e "\n" +read -n1 -rsp "Press any key to continue..." \ No newline at end of file