Changing default RPM built to GCL.
[maxima.git] / maxima-local.in
blob086dd3d2334bb573a31ee244d65848cf2288a7c0
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 "bin"
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" "$@"