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

SCM Repository

[smlnj] Annotation of /ml-lex/releases/release-110.74/build
ViewVC logotype

Annotation of /ml-lex/releases/release-110.74/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2292 - (view) (download)
Original Path: ml-lex/trunk/build

1 : monnier 249 #!/bin/sh
2 :     #
3 :     # build script for ml-lex under the new runtime system.
4 :     #
5 :     # options:
6 : monnier 504 # -o image -- specify the name of the heap image, "ml-lex"
7 : monnier 249 # is the default.
8 :    
9 : blume 569 CMD=$0
10 : monnier 249
11 :     ROOT="ml-lex"
12 :     HEAP_IMAGE=""
13 : blume 2187 SMLNJROOT=`pwd`/..
14 :     BIN=${INSTALLDIR:-$SMLNJROOT}/bin
15 : blume 569 BUILD=$BIN/ml-build
16 : monnier 249
17 :     #
18 :     # process command-line options
19 :     #
20 : blume 569 while [ "$#" != "0" ] ; do
21 : monnier 249 arg=$1
22 :     shift
23 :     case $arg in
24 :     -o)
25 :     if [ "$#" = "0" ]; then
26 :     echo "$CMD: must supply image name for -o option"
27 :     exit 1
28 :     fi
29 :     HEAP_IMAGE=$1; shift
30 : blume 569 ;;
31 : monnier 249 *)
32 : blume 569 echo $CMD: invalid argument: $arg
33 :     exit 1
34 :     ;;
35 : monnier 249 esac
36 :     done
37 :    
38 :     if [ "$HEAP_IMAGE" = "" ]; then
39 :     HEAP_IMAGE="$ROOT"
40 :     fi
41 :    
42 : mblume 1725 "$BUILD" ml-lex.cm ExportLexGen.lexGen $HEAP_IMAGE
43 : monnier 249
44 : blume 2286 exit 0

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