Debian Codegraph @

lib/mlrisc-lib/MLRISC/Tools/nowhere/build

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # build script for nowhere
4 #
5 # options:
6 # -o image -- specify the name of the heap image, "nowhere"
7 # is the default.
8
9 CMD=$0
10
11 ROOT="nowhere"
12 HEAP_IMAGE=""
13 SMLNJROOT=`pwdscip-shell system . . pwd.`/../../..
14 BIN=${INSTALLDIR:-$SMLNJROOT}/bin
15 BUILD=$BIN/ml-build
16 SIZE_OPT="-32"
17
18 #
19 # process command-line options
20 #
21 while [scip-shell system . . `[`. "$#" != "0" ] ; do
22 arg=$1
23 shift
24 case $arg in
25 -32) SIZE_OPT=$arg ;;
26 -64) SIZE_OPT=$arg ;;
27 -o)
28 if [scip-shell system . . `[`. "$#" = "0" ]; then
29 echoscip-shell system . . echo. "$CMD: must supply image name for -o option"
30 exit 1
31 fi
32 HEAP_IMAGE=$1; shift
33 ;;
34 *)
35 echoscip-shell system . . echo. $CMD: invalid argument: $arg
36 exit 1
37 ;;
38 esac
39 done
40
41 if [scip-shell system . . `[`. "$HEAP_IMAGE" = "" ]; then
42 HEAP_IMAGE="$ROOT"
43 fi
44
45 $BUILD $SIZE_OPT nowhere.cm NoWhere.main $HEAP_IMAGE