]> git.lyx.org Git - lyx.git/blob - development/MacOSX/maxima
ctest: invert es/Intro_docbook5
[lyx.git] / development / MacOSX / maxima
1 #!/bin/bash
2 # at first try the well known location
3 DIR="/Applications/Maxima.app/Contents/Resources"
4 test -f "${DIR}"/maxima.sh -a -x "${DIR}"/maxima.sh && exec "${DIR}"/maxima.sh "$@"
5 # this failed... so try PATH expansion to start the maxima shell wrapper
6 IFS=":" read -ra DIRLIST <<< "${PATH}"
7 for DIR in "${DIRLIST[@]}" ; do
8         test -f "${DIR}"/maxima.sh -a -x "${DIR}"/maxima.sh && exec "${DIR}"/maxima.sh "$@"
9 done
10 # report error and exit with failure status
11 exec 1>&2
12 echo Maxima shell wrapper not found.
13 exit 1