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-burg/trunk/build
ViewVC logotype

Annotation of /ml-burg/trunk/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 249 - (view) (download)
Original Path: sml/branches/SMLNJ/src/ml-burg/build

1 : monnier 249 #!/bin/sh
2 :     #
3 :     # build script for ml-burg under the new runtime system.
4 :     #
5 :     # options:
6 :     # -o image -- specify the name of the heap image, "ml-burg"
7 :     # is the default.
8 :     # -sml path -- specify the path to the sml executable, "../../bin/sml"
9 :     # is the default.
10 :    
11 :     CMD="build"
12 :    
13 :     ROOT="ml-burg"
14 :     HEAP_IMAGE=""
15 :     BIN="../../bin"
16 :     SML="$BIN/sml"
17 :    
18 :     #
19 :     # process command-line options
20 :     #
21 :     ARGS=""
22 :     while [ "$#" != "0" ]
23 :     do
24 :     arg=$1
25 :     shift
26 :     case $arg in
27 :     -o)
28 :     if [ "$#" = "0" ]; then
29 :     echo "$CMD: must supply image name for -o option"
30 :     exit 1
31 :     fi
32 :     HEAP_IMAGE=$1; shift
33 :     ;;
34 :     -sml)
35 :     if [ "$#" = "0" ]; then
36 :     echo "$CMD: must supply path for -sml option"
37 :     exit 1
38 :     fi
39 :     SML=$1; shift
40 :     ;;
41 :     *)
42 :     ARGS="$ARGS $arg"
43 :     ;;
44 :     esac
45 :     done
46 :    
47 :     if [ "$HEAP_IMAGE" = "" ]; then
48 :     HEAP_IMAGE="$ROOT"
49 :     fi
50 :    
51 :     $SML $ARGS <<ZZZ
52 :     CM.make();
53 :     Main.export "$HEAP_IMAGE" : unit;
54 :     ZZZ
55 :    

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