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/trunk/build.sh
ViewVC logotype

Annotation of /ml-lex/trunk/build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4697 - (view) (download) (as text)

1 : monnier 249 #!/bin/sh
2 :     #
3 : jhr 4697 # Copyright (c) 2018 The Fellowship of SML/NJ (https://smlnj.org)
4 :     #
5 : monnier 249 # build script for ml-lex under the new runtime system.
6 :     #
7 :     # options:
8 : monnier 504 # -o image -- specify the name of the heap image, "ml-lex"
9 : monnier 249 # is the default.
10 :    
11 : blume 569 CMD=$0
12 : monnier 249
13 :     ROOT="ml-lex"
14 :     HEAP_IMAGE=""
15 : blume 2187 SMLNJROOT=`pwd`/..
16 :     BIN=${INSTALLDIR:-$SMLNJROOT}/bin
17 : blume 569 BUILD=$BIN/ml-build
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 exit 0

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