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

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

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

revision 1385, Fri Sep 19 20:55:21 2003 UTC revision 1494, Thu May 20 03:09:17 2004 UTC
# Line 57  Line 57 
57  REAL_PWD=`pwd`  REAL_PWD=`pwd`
58  ROOT=${PWD:-$REAL_PWD}  ROOT=${PWD:-$REAL_PWD}
59  vsay $this: SML root is $ROOT.  vsay $this: SML root is $ROOT.
60  vsay $this: Installation directory is ${INSTALLDIR:=$ROOT}.  
61    cd ${INSTALLDIR:=$ROOT}
62    INSTALLDIR=`pwd`
63    cd $ROOT
64    vsay $this: Installation directory is ${INSTALLDIR}.
65    
66  #  #
67  # set the various directory and file pathname variables  # set the various directory and file pathname variables
# Line 218  Line 222 
222          sed -e "s,@SHELL@,$SHELL,g" \          sed -e "s,@SHELL@,$SHELL,g" \
223              -e "s,@BINDIR@,$BINDIR," \              -e "s,@BINDIR@,$BINDIR," \
224              -e "s,@VERSION@,$VERSION," \              -e "s,@VERSION@,$VERSION," \
225                -e "s,@CMDIRARC@,${CM_DIR_ARC:-dummy}," \
226              > $BINDIR/$ddst              > $BINDIR/$ddst
227          chmod 555 $BINDIR/$ddst          chmod 555 $BINDIR/$ddst
228          if [ ! -x $BINDIR/$ddst ]; then          if [ ! -x $BINDIR/$ddst ]; then
# Line 246  Line 251 
251  eval $ARCH_N_OPSYS  eval $ARCH_N_OPSYS
252    
253  #  #
254  # now install all the other driver scripts...  # now install most of the other driver scripts
255    #  (except ml-build, since we don't know $CM_DIR_ARC yet)
256  #  #
257  installdriver _run-sml .run-sml  installdriver _run-sml .run-sml
258  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
 installdriver _ml-build ml-build  
259  installdriver _ml-makedepend ml-makedepend  installdriver _ml-makedepend ml-makedepend
260    
261  #  #
# Line 373  Line 378 
378      fi      fi
379  fi  fi
380    
381    #
382    # now that we know CM_DIR_ARC we can install the ml-build driver...
383    #
384    installdriver _ml-build ml-build
385    
386  cd $ROOT  cd $ROOT
387    
388  #  #
389  # Now do all the rest using the libinstall.sml script:  # Now do all the rest using the precompiled installer:
390  #  #
391  echo $this: Installing other libraries and programs:  echo $this: Installing other libraries and programs:
392  if $BINDIR/sml $CONFIGDIR/libinstall.sml <<EOF  export ROOT INSTALLDIR CONFIGDIR BINDIR
393  LibInstall.proc { smlnjroot = "${ROOT}",  if $BINDIR/sml -m \$smlnj/installer.cm
                   buildcmd = "CM_LOCAL_PATHCONFIG=/dev/null ./build",  
                   unpackcmd = SOME "$CONFIGDIR/unpack",  
                   instcmd = fn target => let  
                               val new = "$BINDIR/" ^ target  
                             in  
                                if OS.FileSys.access (new, []) then ()  
                                else  
                                  Posix.FileSys.symlink  
                                     { old = "$BINDIR/.run-sml",  
                                       new = new }  
                              end }  
 EOF  
394  then  then
395      vsay $this: Installation complete.      vsay $this: Installation complete.
396  else  else

Legend:
Removed from v.1385  
changed lines
  Added in v.1494

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