-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaxima-local.in
More file actions
executable file
·30 lines (28 loc) · 1.12 KB
/
Copy pathmaxima-local.in
File metadata and controls
executable file
·30 lines (28 loc) · 1.12 KB
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
#!/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
MAXIMA_HTMLDIR=${MAXIMA_DOC_PREFIX}
export MAXIMA_HTMLDIR
# Tell lisp that we're running maxima-local. Primarily so Lisp can
# produce the right values with --list-avail. Any value is OK.
MAXIMA_LOCAL=yes
export MAXIMA_LOCAL
# 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" "$@"