;;
*)
- 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."
((e_nf++))
;;
-o Select operating system :
'win' => windows operating system (use .exe file extension etc)
'linux' => *nix based operating systems (.bin for binaries)
+ 'osx' => mac osx operating systems (.app for binaries)
-c Disables markov-chains
EXTENSION="exe"
elif [ ${OPTARG} == "linux" ]; then
EXTENSION="bin"
+ elif [ ${OPTARG} == "osx" ]; then
+ EXTENSION="app"
else
usage
fi
if [ -n "${ARCHITECTURE}" ]; then
- BIN=$( echo ${BIN} | sed "s!64!${ARCHITECTURE}!" )
+ BIN="${BIN}${ARCHITECTURE}"
fi
if [ -n "${EXTENSION}" ]; then
- BIN=$( echo ${BIN} | sed "s!\.bin!\.${EXTENSION}!" )
+ BIN="${BIN}.${EXTENSION}"
fi