Adding 5.44 change log.
[maxima/cygwin.git] / maxima-local.in
blob51270b99ba997cba56c1934b8d2d369fe435d087
1 #!/bin/sh
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@"
6 export MAXIMA_PREFIX
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"
12 export MAXIMA_OBJDIR
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"
21 done;
22 exit;
23 fi;
25 # quick fix for plotting with plot_format=openmath (bug 3052)
26 if [ ! -d "@abs_top_srcdir@/bin" ]; then
27 mkdir -p "@abs_top_srcdir@/bin"
28 ln -sf "@abs_top_srcdir@/xmaxima-local" "@abs_top_srcdir@/bin/xmaxima"
29 ln -sf "@abs_top_srcdir@/doc" "@abs_top_srcdir@/bin/doc"
30 ln -sf "@abs_top_srcdir@/src" "@abs_top_srcdir@/bin/src"
31 ln -sf "@abs_top_srcdir@/interfaces" "@abs_top_srcdir@/bin/interfaces"
34 POSIX_SHELL=@POSIX_SHELL@
35 exec $POSIX_SHELL "@abs_top_builddir@/src/maxima" "$@"