HTML help documentation. The fictional URL needs a protocol too.
[maxima/cygwin.git] / maxima-local.in
blob8f8b0b1d3198656be3b98ecd5b70278a1615ba49
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
13 MAXIMA_HTMLDIR=${MAXIMA_DOC_PREFIX}
14 export MAXIMA_HTMLDIR
16 # report the compiled in Lisp versions
17 if [ x"$1" = "x--list-avail" ]; then
18 V=`./maxima-local --version | sed s/Maxima.//`
19 echo "Available versions:"
20 for i in src/binary-* ; do
21 L=`echo $i | sed s/src.binary-//`
22 echo "version $V, lisp $L"
23 done;
24 exit;
25 fi;
27 # quick fix for plotting with plot_format=openmath (bug 3052)
28 if [ ! -d "@abs_top_srcdir@/bin" ]; then
29 mkdir -p "@abs_top_srcdir@/bin"
30 ln -sf "@abs_top_srcdir@/xmaxima-local" "@abs_top_srcdir@/bin/xmaxima"
31 ln -sf "@abs_top_srcdir@/doc" "@abs_top_srcdir@/bin/doc"
32 ln -sf "@abs_top_srcdir@/src" "@abs_top_srcdir@/bin/src"
33 ln -sf "@abs_top_srcdir@/interfaces" "@abs_top_srcdir@/bin/interfaces"
36 POSIX_SHELL=@POSIX_SHELL@
37 exec $POSIX_SHELL "@abs_top_builddir@/src/maxima" "$@"