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

View of /sml/trunk/src/ml-lex/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1725 - (download) (annotate)
Tue Dec 14 23:23:41 2004 UTC (14 years, 3 months ago) by mblume
File size: 699 byte(s)
tried to make installer cope with spaces in filenames (incomplete)
#!/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.

CMD=$0

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

#
# process command-line options
#
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
	    ;;
	*)
	    echo $CMD: invalid argument: $arg
	    exit 1
	    ;;
    esac
done

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

"$BUILD" ml-lex.cm ExportLexGen.lexGen $HEAP_IMAGE


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