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 /config/releases/release-110.63/install.sh
ViewVC logotype

Diff of /config/releases/release-110.63/install.sh

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

sml/trunk/config/install.sh revision 1794, Wed May 18 16:59:22 2005 UTC config/releases/release-110.63/install.sh revision 2369, Thu Mar 22 21:07:47 2007 UTC
# Line 77  Line 77 
77  CONFIGDIR=$ROOT/config  CONFIGDIR=$ROOT/config
78  HEAPDIR=$BINDIR/.heap           # where heap images live  HEAPDIR=$BINDIR/.heap           # where heap images live
79  RUNDIR=$BINDIR/.run             # where executables (i.e., the RTS) live  RUNDIR=$BINDIR/.run             # where executables (i.e., the RTS) live
80  SRCDIR=$ROOT/src                # where the source tree is rooted  BASEDIR=$ROOT/base              # where the base source tree is rooted
81  LIBDIR=$INSTALLDIR/lib          # where libraries live  LIBDIR=$INSTALLDIR/lib          # where libraries live
82    
83  #  #
# Line 98  Line 98 
98  #  #
99  export CM_PATHCONFIG  export CM_PATHCONFIG
100  CM_PATHCONFIG=$LIBDIR/pathconfig  CM_PATHCONFIG=$LIBDIR/pathconfig
   
101  #  #
102  # the release version that we are installing  # the release version that we are installing
103  #  #
# Line 207  Line 206 
206  #  #
207  # create the various sub directories  # create the various sub directories
208  #  #
209  for dir in "$BINDIR" "$HEAPDIR" "$RUNDIR" "$LIBDIR" "$SRCDIR" ; do  for dir in "$BINDIR" "$HEAPDIR" "$RUNDIR" "$LIBDIR" "$BASEDIR" ; do
210      makedir "$dir"      makedir "$dir"
211  done  done
212    
# Line 229  Line 228 
228          cat "$CONFIGDIR"/"$dsrc" | \          cat "$CONFIGDIR"/"$dsrc" | \
229          sed -e "s,@SHELL@,$SHELL,g" \          sed -e "s,@SHELL@,$SHELL,g" \
230              -e "s,@BINDIR@,$BINDIR," \              -e "s,@BINDIR@,$BINDIR," \
231                -e "s,@LIBDIR@,$LIBDIR," \
232              -e "s,@VERSION@,$VERSION," \              -e "s,@VERSION@,$VERSION," \
233              -e "s,@CMDIRARC@,${CM_DIR_ARC:-dummy}," \              -e "s,@CMDIRARC@,${CM_DIR_ARC:-dummy}," \
234              > "$BINDIR"/"$ddst"              > "$BINDIR"/"$ddst"
# Line 317  Line 317 
317      vsay $this: Run-time system already exists.      vsay $this: Run-time system already exists.
318  else  else
319      "$CONFIGDIR"/unpack "$ROOT" runtime      "$CONFIGDIR"/unpack "$ROOT" runtime
320      cd "$SRCDIR"/runtime/objs      cd "$BASEDIR"/runtime/objs
321      echo $this: Compiling the run-time system.      echo $this: Compiling the run-time system.
322      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
323      if [ -x run.$ARCH-$OPSYS ]; then      if [ -x run.$ARCH-$OPSYS ]; then
# Line 325  Line 325 
325          if [ -f runx.$ARCH-$OPSYS ]; then          if [ -f runx.$ARCH-$OPSYS ]; then
326              mv runx.$ARCH-$OPSYS "$RUNDIR"              mv runx.$ARCH-$OPSYS "$RUNDIR"
327          fi          fi
328            if [ -f run.$ARCH-$OPSYS.so ]; then
329                mv run.$ARCH-$OPSYS.so "$RUNDIR"
330            fi
331            if [ -f run.$ARCH-$OPSYS.a ]; then
332                mv run.$ARCH-$OPSYS.a "$RUNDIR"
333            fi
334          $MAKE MAKE=$MAKE clean          $MAKE MAKE=$MAKE clean
335      else      else
336          complain "$this: !!! Run-time system build failed for some reason."          complain "$this: !!! Run-time system build failed for some reason."
337      fi      fi
338  fi  fi
339  cd "$SRCDIR"  cd "$BASEDIR"
340    
341  #  #
342  # boot the base SML system  # boot the base SML system
343  #  #
344  if [ -r "$HEAPDIR"/sml.$HEAP_SUFFIX ]; then  if [ -r "$HEAPDIR"/sml.$HEAP_SUFFIX ]; then
345      vsay $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.      vsay $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.
346      fish "$LIBDIR"/basis.cm      fish "$LIBDIR"/smlnj/basis
347      # ignore requested arc name since we have to live with what is there:      # ignore requested arc name since we have to live with what is there:
348      export CM_DIR_ARC      export CM_DIR_ARC
349      CM_DIR_ARC=$ORIG_CM_DIR_ARC      CM_DIR_ARC=$ORIG_CM_DIR_ARC
# Line 353  Line 359 
359  else  else
360      "$CONFIGDIR"/unpack "$ROOT" "$BOOT_ARCHIVE"      "$CONFIGDIR"/unpack "$ROOT" "$BOOT_ARCHIVE"
361    
362      fish "$ROOT"/"$BOOT_FILES"/basis.cm      fish "$ROOT"/"$BOOT_FILES"/smlnj/basis
363    
364      cd "$ROOT"      cd "$ROOT"
365    

Legend:
Removed from v.1794  
changed lines
  Added in v.2369

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