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 /sml/trunk/src/lexgen/build
ViewVC logotype

Annotation of /sml/trunk/src/lexgen/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1902 - (view) (download)

1 : mblume 1902 #!/bin/sh
2 :     #
3 :     # build script for lexgen
4 :     #
5 :     # options:
6 :     # -o image -- specify the name of the heap image, "ml-yacc"
7 :     # is the default.
8 :    
9 :     CMD=$0
10 :    
11 :     ROOT="lexgen"
12 :     HEAP_IMAGE=""
13 :     TWOUP=`pwd`/../..
14 :     BIN=${INSTALLDIR:-$TWOUP}/bin
15 :     BUILD=$BIN/ml-build
16 :    
17 :     #
18 :     # process command-line options
19 :     #
20 :     while [ "$#" != "0" ] ; do
21 :     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 :     ;;
31 :     *)
32 :     echo $CMD: invalid argument: $arg
33 :     exit 1
34 :     ;;
35 :     esac
36 :     done
37 :    
38 :     if [ "$HEAP_IMAGE" = "" ]; then
39 :     HEAP_IMAGE="$ROOT"
40 :     fi
41 :    
42 :     cd src
43 :     "$BUILD" sources.cm Main.main "$HEAP_IMAGE"
44 :    
45 :     exit 0

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