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 /ml-lex/trunk/build.sh
ViewVC logotype

View of /ml-lex/trunk/build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 504 - (download) (as text) (annotate)
Tue Dec 7 18:31:05 1999 UTC (19 years, 7 months ago) by monnier
Original Path: sml/trunk/src/ml-lex/build
File size: 925 byte(s)
the 110.25 merge compiles
#!/bin/sh
#
# build script for ml-lex under the new runtime system.
#
# options:
#   -o image		-- specify the name of the heap image, "ml-lex"
#			   is the default.
#   -sml path		-- specify the path to the sml executable, "../../bin/sml"
#			   is the default.

CMD="build"

ROOT="ml-lex"
HEAP_IMAGE=""
TWOUP=`pwd`/../../
BIN=${INSTALLDIR:-$TWOUP}/bin
SML=$BIN/sml

#
# process command-line options
#
ARGS=""
while [ "$#" != "0" ]
do
    arg=$1
    shift
    case $arg in
	-o)
	    if [ "$#" = "0" ]; then
		echo "$CMD: must supply image name for -o option"
		exit 1
	    fi
	    HEAP_IMAGE=$1; shift
	;;
	-sml)
	    if [ "$#" = "0" ]; then
		echo "$CMD: must supply path for -sml option"
		exit 1
	    fi
	    SML=$1; shift
	;;
	*)
	    ARGS="$ARGS $arg"
	;;
    esac
done

if [ "$HEAP_IMAGE" = "" ]; then
    HEAP_IMAGE="$ROOT"
fi

$SML $ARGS <<ZZZ
  CM.make "ml-lex.cm";
  ExportLexGen.export "$HEAP_IMAGE" : unit;
ZZZ


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