source: git/Singular/surfex

spielwiese
Last change on this file was ce12a0, checked in by Hans Schoenemann <hannes@…>, 9 years ago
/bin/rm -> command rm (to allow /usr/bin/rm etc.)
  • Property mode set to 100755
File size: 377 bytes
Line 
1#!/bin/bash
2surfex_dir="$1"
3shift
4tmp_dir=/tmp
5std_eqn="x^3+y^3+z^3+1-0.25*(x+y+z+1)^3"
6allargs=""
7if [ -z $1 ] ; then
8    allargs="-e $std_eqn"
9else
10    allargs=$*
11fi
12echo "$PWD" | sed -e 's/ /\\ /g' > $tmp_dir/tmp.$$.txt
13read surfexstartdir <$tmp_dir/tmp.$$.txt
14command rm $tmp_dir/tmp.$$.txt
15cd "$surfex_dir"
16java -jar surfex.jar -d "$surfexstartdir" -t "$tmp_dir" $allargs
Note: See TracBrowser for help on using the repository browser.