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

revision 489, Tue Nov 23 12:55:00 1999 UTC revision 504, Tue Dec 7 18:31:05 1999 UTC
# Line 3  Line 3 
3  # build script for ml-lex under the new runtime system.  # build script for ml-lex under the new runtime system.
4  #  #
5  # options:  # options:
6  #   -arch arch          -- specify the architecture, "heap" is the default.  #   -o image            -- specify the name of the heap image, "ml-lex"
 #   -o image            -- specify the name of the heap image, "ml-lex.ARCH"  
7  #                          is the default.  #                          is the default.
8  #   -sml path           -- specify the path to the sml executable, "../../bin/sml"  #   -sml path           -- specify the path to the sml executable, "../../bin/sml"
9  #                          is the default.  #                          is the default.
# Line 13  Line 12 
12    
13  ROOT="ml-lex"  ROOT="ml-lex"
14  HEAP_IMAGE=""  HEAP_IMAGE=""
15  ARCH="heap"  TWOUP=`pwd`/../../
16  BIN="${INSTALLDIR:-../..}/bin"  BIN=${INSTALLDIR:-$TWOUP}/bin
17  SML="$BIN/sml"  SML=$BIN/sml
   
 #  
 # determine the host architecture  
 #  
 ARCH_N_OPSYS=`$BIN/.arch-n-opsys`  
 if [ $? != "0" ]; then  
   echo "$CMD: unable to determine architecture/operating system"  
   exit 1  
 fi  
 eval $ARCH_N_OPSYS  
18    
19  #  #
20  # process command-line options  # process command-line options
# Line 36  Line 25 
25      arg=$1      arg=$1
26      shift      shift
27      case $arg in      case $arg in
         -arch)  
             if [ "$#" = "0" ]; then  
                 echo "$CMD: must supply architecture for -arch option"  
                 exit 1  
             fi  
             ARCH=$1; shift  
         ;;  
28          -o)          -o)
29              if [ "$#" = "0" ]; then              if [ "$#" = "0" ]; then
30                  echo "$CMD: must supply image name for -o option"                  echo "$CMD: must supply image name for -o option"
# Line 68  Line 50 
50  fi  fi
51    
52  $SML $ARGS <<ZZZ  $SML $ARGS <<ZZZ
53    use "lexgen.sml";    CM.make "ml-lex.cm";
54    use "export-lex.sml";    ExportLexGen.export "$HEAP_IMAGE" : unit;
   export "$HEAP_IMAGE" : unit;  
55  ZZZ  ZZZ
56    

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

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