File: maxima-local.in

package info (click to toggle)
maxima 5.44.0-2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 108,368 kB
  • sloc: lisp: 383,860; fortran: 14,665; perl: 14,369; tcl: 11,147; sh: 4,517; makefile: 2,580; ansic: 447; python: 262; xml: 59; awk: 37; sed: 17
file content (35 lines) | stat: -rwxr-xr-x 1,208 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# This should be written for a classic Bourne shell.  Therefore avoid
# things like $() and other bash-isms and ksh-isms that don't work
# with a classic Bourne shell.
MAXIMA_PREFIX="@abs_top_srcdir@"
export MAXIMA_PREFIX
MAXIMA_DOC_PREFIX="@abs_top_builddir@"
export MAXIMA_DOC_PREFIX
MAXIMA_LAYOUT_AUTOTOOLS=false
export MAXIMA_LAYOUT_AUTOTOOLS
MAXIMA_OBJDIR="@abs_top_builddir@/binary"
export MAXIMA_OBJDIR

# report the compiled in Lisp versions
if [ x"$1" = "x--list-avail" ]; then
    V=`./maxima-local --version | sed s/Maxima.//`
    echo "Available versions:"
    for i in src/binary-* ; do
        L=`echo $i | sed s/src.binary-//`
        echo "version $V, lisp $L"
    done;
    exit;
fi;

# quick fix for plotting with plot_format=openmath (bug 3052)
if [ ! -d "@abs_top_srcdir@/bin" ]; then
    mkdir -p "@abs_top_srcdir@/bin"
    ln -sf "@abs_top_srcdir@/xmaxima-local" "@abs_top_srcdir@/bin/xmaxima"
    ln -sf "@abs_top_srcdir@/doc" "@abs_top_srcdir@/bin/doc"
    ln -sf "@abs_top_srcdir@/src" "@abs_top_srcdir@/bin/src"
    ln -sf "@abs_top_srcdir@/interfaces" "@abs_top_srcdir@/bin/interfaces"
fi

POSIX_SHELL=@POSIX_SHELL@
exec $POSIX_SHELL "@abs_top_builddir@/src/maxima" "$@"