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 MAXIMA_PREFIX
="@abs_top_srcdir@"
7 MAXIMA_DOC_PREFIX
="@abs_top_builddir@"
8 export MAXIMA_DOC_PREFIX
9 MAXIMA_LAYOUT_AUTOTOOLS
=false
10 export MAXIMA_LAYOUT_AUTOTOOLS
11 MAXIMA_OBJDIR
="@abs_top_builddir@/binary"
14 # report the compiled in Lisp versions
15 if [ x
"$1" = "x--list-avail" ]; then
16 V
=`./maxima-local --version | sed s/Maxima.//`
17 echo "Available versions:"
18 for i
in src
/binary-
* ; do
19 L
=`echo $i | sed s/src.binary-//`
20 echo "version $V, lisp $L"
25 # quick fix for plotting with plot_format=openmath (bug 3052)
26 if [ ! -d "@abs_top_srcdir@/bin" ]; then
28 ln -sf "@abs_top_srcdir@/xmaxima-local" bin
/xmaxima
29 ln -sf "@abs_top_srcdir@/doc" bin
/doc
30 ln -sf "@abs_top_srcdir@/src" bin
/src
31 ln -sf "@abs_top_srcdir@/interfaces" bin
/interfaces
34 POSIX_SHELL
=@POSIX_SHELL@
35 exec $POSIX_SHELL "@abs_top_builddir@/src/maxima" "$@"