Updated test.sh (support for osx and some fixes)

pull/156/head
Gabriele 'matrix' Gristina 9 years ago
parent 58359f3b7e
commit f00617f992

@ -294,7 +294,7 @@ function status()
;; ;;
*) *)
echo "! unhandled return code ${RET}, cmdline : ${CMD}" $>> ${OUTD}/logfull.txt echo "! unhandled return code ${RET}, cmdline : ${CMD}" &>> ${OUTD}/logfull.txt
echo "! unhandled return code, see ${OUTD}/logfull.txt for details." echo "! unhandled return code, see ${OUTD}/logfull.txt for details."
((e_nf++)) ((e_nf++))
;; ;;
@ -1544,6 +1544,7 @@ OPTIONS:
-o Select operating system : -o Select operating system :
'win' => windows operating system (use .exe file extension etc) 'win' => windows operating system (use .exe file extension etc)
'linux' => *nix based operating systems (.bin for binaries) 'linux' => *nix based operating systems (.bin for binaries)
'osx' => mac osx operating systems (.app for binaries)
-c Disables markov-chains -c Disables markov-chains
@ -1635,6 +1636,8 @@ while getopts "t:m:a:b:hcpd:x:o:" opt; do
EXTENSION="exe" EXTENSION="exe"
elif [ ${OPTARG} == "linux" ]; then elif [ ${OPTARG} == "linux" ]; then
EXTENSION="bin" EXTENSION="bin"
elif [ ${OPTARG} == "osx" ]; then
EXTENSION="app"
else else
usage usage
fi fi
@ -1653,13 +1656,13 @@ done
if [ -n "${ARCHITECTURE}" ]; then if [ -n "${ARCHITECTURE}" ]; then
BIN=$( echo ${BIN} | sed "s!64!${ARCHITECTURE}!" ) BIN="${BIN}${ARCHITECTURE}"
fi fi
if [ -n "${EXTENSION}" ]; then if [ -n "${EXTENSION}" ]; then
BIN=$( echo ${BIN} | sed "s!\.bin!\.${EXTENSION}!" ) BIN="${BIN}.${EXTENSION}"
fi fi

Loading…
Cancel
Save