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/trunk/install.sh
ViewVC logotype

Diff of /config/trunk/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/trunk/install.sh revision 2150, Thu Nov 2 17:52:56 2006 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  SRCDIR=$ROOT/base/src           # where the 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 260  Line 265 
265  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
266  installdriver _ml-makedepend ml-makedepend  installdriver _ml-makedepend ml-makedepend
267    
268    installdriver _heap2exec heap2exec
269    
270  #  #
271  # set some architecture dependent run-time system flags  # set some architecture dependent run-time system flags
272  #  #
# Line 314  Line 321 
321      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
322      if [ -x run.$ARCH-$OPSYS ]; then      if [ -x run.$ARCH-$OPSYS ]; then
323          mv run.$ARCH-$OPSYS "$RUNDIR"          mv run.$ARCH-$OPSYS "$RUNDIR"
324            if [ -f runx.$ARCH-$OPSYS ]; then
325                mv runx.$ARCH-$OPSYS "$RUNDIR"
326            fi
327            if [ -f run.$ARCH-$OPSYS.so ]; then
328                mv run.$ARCH-$OPSYS.so "$RUNDIR"
329            fi
330            if [ -f run.$ARCH-$OPSYS.a ]; then
331                mv run.$ARCH-$OPSYS.a "$RUNDIR"
332            fi
333          $MAKE MAKE=$MAKE clean          $MAKE MAKE=$MAKE clean
334      else      else
335          complain "$this: !!! Run-time system build failed for some reason."          complain "$this: !!! Run-time system build failed for some reason."
# Line 326  Line 342 
342  #  #
343  if [ -r "$HEAPDIR"/sml.$HEAP_SUFFIX ]; then  if [ -r "$HEAPDIR"/sml.$HEAP_SUFFIX ]; then
344      vsay $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.      vsay $this: Heap image $HEAPDIR/sml.$HEAP_SUFFIX already exists.
345      fish "$LIBDIR"/basis.cm      fish "$LIBDIR"/smlnj/basis
346      # 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:
347      export CM_DIR_ARC      export CM_DIR_ARC
348      CM_DIR_ARC=$ORIG_CM_DIR_ARC      CM_DIR_ARC=$ORIG_CM_DIR_ARC
349        # now re-dump the heap image:
350        vsay "$this: Re-creating a (customized) heap image..."
351        "$BINDIR"/sml @CMredump "$ROOT"/sml
352        cd "$ROOT"
353        if [ -r sml.$HEAP_SUFFIX ]; then
354            mv sml.$HEAP_SUFFIX "$HEAPDIR"
355        else
356            complain "$this !!! Unable to re-create heap image (sml.$HEAP_SUFFIX)."
357        fi
358  else  else
359      "$CONFIGDIR"/unpack "$ROOT" "$BOOT_ARCHIVE"      "$CONFIGDIR"/unpack "$ROOT" "$BOOT_ARCHIVE"
360    
361      fish "$ROOT"/"$BOOT_FILES"/basis.cm      fish "$ROOT"/"$BOOT_FILES"/smlnj/basis
362    
363      cd "$ROOT"      cd "$ROOT"
364    
# Line 392  Line 417 
417  #  #
418  # Now do all the rest using the precompiled installer:  # Now do all the rest using the precompiled installer:
419  #  #
420    if [ $nolib = false ] ; then
421  echo $this: Installing other libraries and programs:  echo $this: Installing other libraries and programs:
422  export ROOT INSTALLDIR CONFIGDIR BINDIR  export ROOT INSTALLDIR CONFIGDIR BINDIR
423  if "$BINDIR"/sml -m \$smlnj/installer.cm  if "$BINDIR"/sml -m \$smlnj/installer.cm
# Line 400  Line 426 
426  else  else
427      complain "$this: !!! Installation of libraries and programs failed."      complain "$this: !!! Installation of libraries and programs failed."
428  fi  fi
429    fi
430    
431  exit 0  exit 0

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

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