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

SCM Repository

[smlnj] Diff of /sml/trunk/src/ml-lex/build
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 504, Tue Dec 7 18:31:05 1999 UTC revision 651, Thu Jun 1 18:34:03 2000 UTC
# Line 5  Line 5 
5  # options:  # options:
6  #   -o image            -- specify the name of the heap image, "ml-lex"  #   -o image            -- specify the name of the heap image, "ml-lex"
7  #                          is the default.  #                          is the default.
 #   -sml path           -- specify the path to the sml executable, "../../bin/sml"  
 #                          is the default.  
8    
9  CMD="build"  CMD=$0
10    
11  ROOT="ml-lex"  ROOT="ml-lex"
12  HEAP_IMAGE=""  HEAP_IMAGE=""
13  TWOUP=`pwd`/../../  TWOUP=`pwd`/../../
14  BIN=${INSTALLDIR:-$TWOUP}/bin  BIN=${INSTALLDIR:-$TWOUP}/bin
15  SML=$BIN/sml  BUILD=$BIN/ml-build
16    
17  #  #
18  # process command-line options  # process command-line options
19  #  #
20  ARGS=""  while [ "$#" != "0" ] ; do
 while [ "$#" != "0" ]  
 do  
21      arg=$1      arg=$1
22      shift      shift
23      case $arg in      case $arg in
# Line 32  Line 28 
28              fi              fi
29              HEAP_IMAGE=$1; shift              HEAP_IMAGE=$1; shift
30          ;;          ;;
         -sml)  
             if [ "$#" = "0" ]; then  
                 echo "$CMD: must supply path for -sml option"  
                 exit 1  
             fi  
             SML=$1; shift  
         ;;  
31          *)          *)
32              ARGS="$ARGS $arg"              echo $CMD: invalid argument: $arg
33                exit 1
34          ;;          ;;
35      esac      esac
36  done  done
# Line 49  Line 39 
39      HEAP_IMAGE="$ROOT"      HEAP_IMAGE="$ROOT"
40  fi  fi
41    
42  $SML $ARGS <<ZZZ  $BUILD ml-lex.cm ExportLexGen.lexGen $HEAP_IMAGE
   CM.make "ml-lex.cm";  
   ExportLexGen.export "$HEAP_IMAGE" : unit;  
 ZZZ  
43    

Legend:
Removed from v.504  
changed lines
  Added in v.651

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