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

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

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

sml/branches/SMLNJ/src/ml-yacc/build revision 249, Sat Apr 17 18:57:03 1999 UTC sml/trunk/src/ml-yacc/build revision 534, Thu Feb 17 22:14:04 2000 UTC
# Line 3  Line 3 
3  # build script for ml-yacc under the new runtime system.  # build script for ml-yacc 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-yacc"
 #   -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-yacc"  ROOT="ml-yacc"
14  HEAP_IMAGE=""  HEAP_IMAGE=""
15  BIN="../../bin"  TWOUP=`pwd`/../..
16  # sml is used after "cd src"  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 69  Line 51 
51    
52  cd src  cd src
53  $SML $ARGS <<ZZZ  $SML $ARGS <<ZZZ
54    use "load";      CM.make "ml-yacc.cm";
   use "export-yacc.sml";  
55    ExportParseGen.export "$HEAP_IMAGE" : unit;    ExportParseGen.export "$HEAP_IMAGE" : unit;
56  ZZZ  ZZZ
57  cd ..  cd ..

Legend:
Removed from v.249  
changed lines
  Added in v.534

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