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 1725, Tue Dec 14 23:23:41 2004 UTC config/releases/release-110.63/install.sh revision 2369, Thu Mar 22 21:07:47 2007 UTC
# Line 12  Line 12 
12  # Author: Matthias Blume (blume@tti-c.org)  # Author: Matthias Blume (blume@tti-c.org)
13  #  #
14    
15    if [ x$1 = xnolib ] ; then
16        nolib=true
17    else
18        nolib=false
19    fi
20    
21  if [ x${INSTALL_QUIETLY} = xtrue ] ; then  if [ x${INSTALL_QUIETLY} = xtrue ] ; then
22      export CM_VERBOSE      export CM_VERBOSE
23      CM_VERBOSE=false      CM_VERBOSE=false
# Line 71  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 92  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 201  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 223  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 260  Line 266 
266  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
267  installdriver _ml-makedepend ml-makedepend  installdriver _ml-makedepend ml-makedepend
268    
269    installdriver _heap2exec heap2exec
270    
271  #  #
272  # set some architecture dependent run-time system flags  # set some architecture dependent run-time system flags
273  #  #
# Line 309  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
324          mv run.$ARCH-$OPSYS "$RUNDIR"          mv run.$ARCH-$OPSYS "$RUNDIR"
325            if [ -f runx.$ARCH-$OPSYS ]; then
326                mv runx.$ARCH-$OPSYS "$RUNDIR"
327            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
350        # now re-dump the heap image:
351        vsay "$this: Re-creating a (customized) heap image..."
352        "$BINDIR"/sml @CMredump "$ROOT"/sml
353        cd "$ROOT"
354        if [ -r sml.$HEAP_SUFFIX ]; then
355            mv sml.$HEAP_SUFFIX "$HEAPDIR"
356        else
357            complain "$this !!! Unable to re-create heap image (sml.$HEAP_SUFFIX)."
358        fi
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    
# Line 392  Line 418 
418  #  #
419  # Now do all the rest using the precompiled installer:  # Now do all the rest using the precompiled installer:
420  #  #
421    if [ $nolib = false ] ; then
422  echo $this: Installing other libraries and programs:  echo $this: Installing other libraries and programs:
423  export ROOT INSTALLDIR CONFIGDIR BINDIR  export ROOT INSTALLDIR CONFIGDIR BINDIR
424  if "$BINDIR"/sml -m \$smlnj/installer.cm  if "$BINDIR"/sml -m \$smlnj/installer.cm
# Line 400  Line 427 
427  else  else
428      complain "$this: !!! Installation of libraries and programs failed."      complain "$this: !!! Installation of libraries and programs failed."
429  fi  fi
430    fi
431    
432  exit 0  exit 0

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

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