mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] problem with maxima 5.19.2


Chronological Thread 
  • From: Michael Lachmann <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] problem with maxima 5.19.2
  • Date: Mon, 12 Apr 2010 19:34:42 +0200

On 10 Apr 2010, at 13:15, Andrey G. Grozin wrote:

On Tue, 6 Apr 2010, Michael Lachmann wrote:
It seems that the parameters that TeXmacs supplies the tm_maxima script are "5.6 gcl", even though the version is 5.19.2
What does the script maxima_detect print? It should produce the list of versions of maxima (and corresponding lisp implementations) found on your system. If it does not, I'd want to understand why.

It prints 5.6 gcl

The problem is, I think, with the grep line:
---
if grep -F list-avail $MAXIMA >/dev/null
then
# 5.9.0 or later
---
My maxima script does not contain "list-avail", and yet it accepts the --list-avail option
--
> maxima --list-avail
Available versions:
version 5.19.2, lisp sbcl
--
I thought I have the latest texmacs installed. 1.0.7.2.

Below is my /usr/local/bin/maxima script.

Michael






--
#!/bin/sh
# -*- Shell-script -*-

ROOT=${0%/bin/maxima}

unixize () {
echo "$1" | sed -e 's%\\\\%/%g' | sed -e 's%^\([A-Za-z]\):%/\1%'
}

setup_vars() {
MAXIMA_VERSION=5.19.2
prefix=`unixize "${ROOT}"`
exec_prefix=`unixize "${prefix}"`
PACKAGE=maxima
libdir=`unixize "${exec_prefix}/lib"`
MAXIMA_IMAGESDIR=$libdir/$PACKAGE/$MAXIMA_VERSION
}

if [ -z "$MAXIMA_USERDIR" ]; then
maximarc_path="$HOME/.maxima/maximarc"
else
maximarc_path="`unixize \"$MAXIMA_USERDIR\"`/maximarc"
fi
if [ -f "$maximarc_path" ]; then
. "$maximarc_path"
fi

# For some reason TeXmacs sets MAXIMA_DIRECTORY to the empty string,
# which breaks maxima's internal path logic. This is a workaround.
if [ -z "$MAXIMA_DIRECTORY" ]; then
unset MAXIMA_DIRECTORY
fi

arg1=$1
arg2=$2
arg3=$3
arg4=$4
arg5=$5
arg6=$6
arg7=$7
arg8=$8
arg9=$9
while [ -n "$1" ]; do
case $1 in
-X|--lisp-options) MAXIMA_LISP_OPTIONS="$2" ; shift ;;
--lisp-options=*) MAXIMA_LISP_OPTIONS=`echo "$1" | sed 's/--lisp- options=//'` ;;
-v ) verbose=true;;
--verbose ) verbose=true;;
*) ;;
esac
shift
done

setup_vars

MAXIMA_PREFIX="${prefix}"
export MAXIMA_PREFIX
maxima_image_base="$MAXIMA_IMAGESDIR/binary-sbcl/maxima"

if [ "$verbose" = "true" ]; then
set -x
fi

exec "$MAXIMA_IMAGESDIR/binary-sbcl/sbcl" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end- runtime-options --eval '(cl-user::run)' --end-toplevel-options "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"








Archive powered by MHonArc 2.6.19.

Top of page