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 /ml-lex/releases/release-110.84.1/build.sh
ViewVC logotype

Diff of /ml-lex/releases/release-110.84.1/build.sh

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

sml/trunk/src/ml-lex/build revision 504, Tue Dec 7 18:31:05 1999 UTC ml-lex/trunk/build revision 2286, Wed Jan 31 00:16:13 2007 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`/../../  SMLNJROOT=`pwd`/..
14  BIN=${INSTALLDIR:-$TWOUP}/bin  BIN=${INSTALLDIR:-$SMLNJROOT}/bin
15    LIB=${INSTALLDIR:-$SMLNJROOT}/lib
16    BUILD=$BIN/ml-build
17  SML=$BIN/sml  SML=$BIN/sml
18    
19  #  #
20  # process command-line options  # process command-line options
21  #  #
22  ARGS=""  while [ "$#" != "0" ] ; do
 while [ "$#" != "0" ]  
 do  
23      arg=$1      arg=$1
24      shift      shift
25      case $arg in      case $arg in
# Line 32  Line 30 
30              fi              fi
31              HEAP_IMAGE=$1; shift              HEAP_IMAGE=$1; shift
32          ;;          ;;
         -sml)  
             if [ "$#" = "0" ]; then  
                 echo "$CMD: must supply path for -sml option"  
                 exit 1  
             fi  
             SML=$1; shift  
         ;;  
33          *)          *)
34              ARGS="$ARGS $arg"              echo $CMD: invalid argument: $arg
35                exit 1
36          ;;          ;;
37      esac      esac
38  done  done
# Line 49  Line 41 
41      HEAP_IMAGE="$ROOT"      HEAP_IMAGE="$ROOT"
42  fi  fi
43    
44  $SML $ARGS <<ZZZ  "$BUILD" ml-lex.cm ExportLexGen.lexGen $HEAP_IMAGE
45    CM.make "ml-lex.cm";  
46    ExportLexGen.export "$HEAP_IMAGE" : unit;  #
47  ZZZ  # Install CM support for ml-lex:
48    "$SML" -m \$smlnj/library-install.cm tool/mllex-tool.cm ${LIB}
49    "$SML" -m \$smlnj/library-install.cm tool/lex-ext.cm ${LIB}
50    
51    exit 0

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

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