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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2286 - (view) (download) (as text)
Original Path: ml-lex/trunk/build

1 : monnier 249 #!/bin/sh
2 :     #
3 :     # build script for ml-lex under the new runtime system.
4 :     #
5 :     # options:
6 : monnier 504 # -o image -- specify the name of the heap image, "ml-lex"
7 : monnier 249 # is the default.
8 :    
9 : blume 569 CMD=$0
10 : monnier 249
11 :     ROOT="ml-lex"
12 :     HEAP_IMAGE=""
13 : blume 2187 SMLNJROOT=`pwd`/..
14 :     BIN=${INSTALLDIR:-$SMLNJROOT}/bin
15 : blume 2286 LIB=${INSTALLDIR:-$SMLNJROOT}/lib
16 : blume 569 BUILD=$BIN/ml-build
17 : blume 2286 SML=$BIN/sml
18 : monnier 249
19 :     #
20 :     # process command-line options
21 :     #
22 : blume 569 while [ "$#" != "0" ] ; do
23 : monnier 249 arg=$1
24 :     shift
25 :     case $arg in
26 :     -o)
27 :     if [ "$#" = "0" ]; then
28 :     echo "$CMD: must supply image name for -o option"
29 :     exit 1
30 :     fi
31 :     HEAP_IMAGE=$1; shift
32 : blume 569 ;;
33 : monnier 249 *)
34 : blume 569 echo $CMD: invalid argument: $arg
35 :     exit 1
36 :     ;;
37 : monnier 249 esac
38 :     done
39 :    
40 :     if [ "$HEAP_IMAGE" = "" ]; then
41 :     HEAP_IMAGE="$ROOT"
42 :     fi
43 :    
44 : mblume 1725 "$BUILD" ml-lex.cm ExportLexGen.lexGen $HEAP_IMAGE
45 : monnier 249
46 : blume 2286 #
47 :     # 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

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