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/system/makeml
ViewVC logotype

Diff of /sml/trunk/src/system/makeml

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

revision 497, Tue Dec 7 15:44:50 1999 UTC revision 498, Tue Dec 7 15:44:50 1999 UTC
# Line 9  Line 9 
9  HEAP_IMAGE=""  HEAP_IMAGE=""
10  RUN=""  RUN=""
11  RUN_ARGS=""  RUN_ARGS=""
12  REBUILD=""  MODE=""
13  BOOT_DIR=""  BOOT_DIR=""
14    rebuilt=no
15    
16  #  #
17  # Set CM_PATHCONFIG_DEFAULT to ../../lib/pathconfig  # Set CM_PATHCONFIG_DEFAULT to ../../lib/pathconfig
# Line 55  Line 56 
56  do  do
57    arg=$1; shift    arg=$1; shift
58    case $arg in    case $arg in
59      -bare) FULL="@SMLbare" ;;      -bare) MODE="@SMLbare" ;;
60      -rebuild)      -rebuild)
61        if [ "$#" = "0" ]; then        if [ "$#" = "0" ]; then
62          echo "makeml: missing argument for \"-rebuild\" option"          echo "makeml: missing argument for \"-rebuild\" option"
63          exit 1          exit 1
64        fi        fi
65        REBUILD="@SMLrebuild=$1"; shift        rebuilt=yes
66          MODE="@SMLrebuild=$1"; shift
67      ;;      ;;
68      -arch)      -arch)
69        if [ "$#" = "0" ]; then        if [ "$#" = "0" ]; then
# Line 135  Line 137 
137  fi  fi
138    
139  if [ x"$BOOT_DIR" = x ]; then  if [ x"$BOOT_DIR" = x ]; then
140    BOOT_DIR="./comp.boot.$ARCH-unix"    BOOT_DIR="./sml.boot.$ARCH-unix"
141  fi  fi
142    
143  echo "$RUN @SMLboot=$BOOT_DIR @SMLrtpid=`cat $BOOT_DIR/RTPID` \  echo "$RUN @SMLboot=$BOOT_DIR @SMLrtpid=`cat $BOOT_DIR/RTPID` \
144          @SMLheap=$HEAP_IMAGE @SMLalloc=$ALLOC $RUN_ARGS $REBUILD"          @SMLheap=$HEAP_IMAGE @SMLalloc=$ALLOC $RUN_ARGS $MODE"
145    
146  if $RUN @SMLboot=$BOOT_DIR @SMLrtpid=`cat $BOOT_DIR/RTPID` \  if $RUN @SMLboot=$BOOT_DIR @SMLrtpid=`cat $BOOT_DIR/RTPID` \
147          @SMLheap=$HEAP_IMAGE @SMLalloc=$ALLOC $RUN_ARGS $REBUILD          @SMLheap=$HEAP_IMAGE @SMLalloc=$ALLOC $RUN_ARGS $MODE
148  then  then
149  #  #
150  # If this was a -rebuild run, we have to quit now...  # If this was a -rebuild run, we have to quit now...
151  #  #
152      if [ x$REBUILD != x ] ; then      if [ $rebuilt = yes ] ; then
153          echo New binfiles are ready.          echo New binfiles are ready.
154          exit 0          exit 0
155      fi      fi
# Line 170  Line 172 
172    
173  for i in *.cm ; do  for i in *.cm ; do
174      mv $i $LIB_DIR/$i      mv $i $LIB_DIR/$i
175      echo $i $LIB_DIR/$i      echo $i $i
176  done >$LIB_DIR/pathconfig  done >$LIB_DIR/pathconfig
177    
178  cd ..  cd ..

Legend:
Removed from v.497  
changed lines
  Added in v.498

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