Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/system/testml
ViewVC logotype

View of /sml/trunk/src/system/testml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 539 - (download) (annotate)
Fri Feb 18 18:32:26 2000 UTC (19 years, 9 months ago) by monnier
File size: 506 byte(s)
Try to allow to run testml from a different directory.
#!/bin/sh

if [ $# -gt 0 ] ; then
    HEAP_IMAGE=$1
    shift
else
    HEAP_IMAGE=sml
fi

cmddir=`dirname $0`
cmddir=`cd $cmddir; pwd`

bin=../../bin
[ -x "$bin/.arch-n-opsys" ] || bin="$cmddir/$bin"

eval `$bin/.arch-n-opsys`

heapdir=`dirname $HEAP_IMAGE`
[ -f "$heapdir/$HEAP_IMAGE.$HEAP_SUFFIX" ] || heapdir="$cmddir/$heapdir"
HEAP_IMAGE=`cd $heapdir; pwd`/$HEAP_IMAGE

LIB_DIR=${HEAP_IMAGE}.lib

CM_PATHCONFIG=$LIB_DIR/pathconfig CM_LOCAL_PATHCONFIG=/dev/null \
    $bin/sml @SMLload=$HEAP_IMAGE "$@"

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0