2 # This should be written for a classic Bourne shell. Therefore avoid
3 # things like $() and other bash-isms and ksh-isms that don't work
4 # with a classic Bourne shell.
5 top_srcdir
=`(cd \`dirname $0\
` > /dev/null 2>&1 ; pwd)`
6 MAXIMA_PREFIX
="$top_srcdir"
8 MAXIMA_LAYOUT_AUTOTOOLS
=false
9 export MAXIMA_LAYOUT_AUTOTOOLS
10 MAXIMA_OBJDIR
="$top_srcdir/binary"
13 # report the compiled in Lisp versions
14 if [ x
"$1" = "x--list-avail" ]; then
15 V
=`./maxima-local --version | sed s/Maxima.//`
16 echo "Available versions:"
17 for i
in src
/binary-
* ; do
18 L
=`echo $i | sed s/src.binary-//`
19 echo "version $V, lisp $L"
24 # quick fix for plotting with plot_format=openmath (bug 3052)
25 if [ ! -d "$top_srcdir/bin" ]; then
26 mkdir
-p "$top_srcdir/bin"
27 ln -sf "$top_srcdir/xmaxima-local" "$top_srcdir/bin/xmaxima"
28 ln -sf "$top_srcdir/doc" "$top_srcdir/bin/doc"
29 ln -sf "$top_srcdir/src" "$top_srcdir/bin/src"
30 ln -sf "$top_srcdir/interfaces" "$top_srcdir/bin/interfaces"
33 POSIX_SHELL
=@POSIX_SHELL@
34 exec $POSIX_SHELL "$top_srcdir/src/maxima" "$@"