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/config/_link-sml
ViewVC logotype

Diff of /sml/trunk/config/_link-sml

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

revision 1724, Mon Dec 13 20:45:51 2004 UTC revision 1725, Tue Dec 14 23:23:41 2004 UTC
# Line 19  Line 19 
19  #  #
20    
21  # the path of the directory in which executables (like this file) are kept.  # the path of the directory in which executables (like this file) are kept.
22  if [ x${SMLNJ_HOME} = x ] ; then  if [ x"$SMLNJ_HOME" = x ] ; then
23      BIN_DIR=@BINDIR@      BIN_DIR="@BINDIR@"
24      if [ ! -d "$BIN_DIR" ]; then      if [ ! -d "$BIN_DIR" ]; then
25          cmddir=`dirname $0`          cmddir=`dirname $0`
26          case "$cmddir" in          case "$cmddir" in
# Line 29  Line 29 
29          esac          esac
30      fi      fi
31  else  else
32      if [ x${CM_PATHCONFIG} = x ] ; then      if [ x"$CM_PATHCONFIG" = x ] ; then
33          CM_PATHCONFIG=${SMLNJ_HOME}/lib/pathconfig          CM_PATHCONFIG="$SMLNJ_HOME"/lib/pathconfig
34          export CM_PATHCONFIG          export CM_PATHCONFIG
35      fi      fi
36      BIN_DIR=${SMLNJ_HOME}/bin      BIN_DIR="$SMLNJ_HOME"/bin
37  fi  fi
38    
39  # the path of the directory in which the runtime system executables are kept.  # the path of the directory in which the runtime system executables are kept.
# Line 42  Line 42 
42  #  #
43  # the following could be replaced with some site specific code  # the following could be replaced with some site specific code
44  #  #
45  ARCH_N_OPSYS=`$BIN_DIR/.arch-n-opsys`  ARCH_N_OPSYS=`"$BIN_DIR/.arch-n-opsys"`
46  if [ "$?" != "0" ]; then  if [ "$?" != "0" ]; then
47    echo "$CMD: unable to determine architecture/operating system"    echo "$CMD: unable to determine architecture/operating system"
48    exit 1    exit 1
# Line 61  Line 61 
61  RUN="$RUN_DIR/run.$ARCH-$OPSYS"  RUN="$RUN_DIR/run.$ARCH-$OPSYS"
62  BOOT=""  BOOT=""
63  ARGS=""  ARGS=""
64    HEAP="sml"
65  while [ "$#" != "0" ]; do  while [ "$#" != "0" ]; do
66    arg=$1; shift    arg=$1; shift
67    case $arg in    case "$arg" in
68      @SMLrun=*)      @SMLrun=*)
69        RUN=`echo $arg | sed 's/@SMLrun=//'`        RUN=`echo "$arg" | sed 's/@SMLrun=//'`
70        ;;        ;;
71      @SMLboot=*)      @SMLboot=*)
72        BOOT=`echo $arg | sed 's/@SMLboot=//'`        BOOT=`echo "$arg" | sed 's/@SMLboot=//'`
73          ;;
74        @SMLheap=*)
75          HEAP=`echo "$arg" | sed 's/@SMLheap=//'`
76        ;;        ;;
77      @SMLversion)      @SMLversion)
78        echo "$CMD @VERSION@"        echo "$CMD @VERSION@"
# Line 93  Line 97 
97  #  #
98  # run the sucker!  # run the sucker!
99  #  #
100  exec $RUN @SMLboot=$BOOT $ARGS  exec "$RUN" @SMLboot="$BOOT" @SMLheap="$HEAP" $ARGS

Legend:
Removed from v.1724  
changed lines
  Added in v.1725

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