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

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

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

revision 615, Wed Apr 12 04:52:09 2000 UTC revision 814, Tue May 1 15:44:45 2001 UTC
# Line 62  Line 62 
62  URLGETTER=unknown  URLGETTER=unknown
63    
64  #  #
65  # the path to the dir where ml-yacc, ml-burg, ml-lex, and ml-build live  # the path to the dir where ml-yacc, ml-burg, ml-lex, ml-build, and
66    # ml-makedepend live
67  #  #
68  TOOLDIR=$BINDIR  TOOLDIR=$BINDIR
69    
70  #  #
71    # A temporary file for post-editing the pathconfig file...
72    #
73    PCEDITTMP=$INSTALLDIR/pcedittmp.$$
74    
75    #
76  # files to be deleted after we are done...  # files to be deleted after we are done...
77  #  #
78  tmpfiles=""  tmpfiles=""
# Line 74  Line 80 
80  tmpfiles="$tmpfiles $LIBLIST"  tmpfiles="$tmpfiles $LIBLIST"
81  tmpfiles="$tmpfiles $LOCALPATHCONFIG"  tmpfiles="$tmpfiles $LOCALPATHCONFIG"
82  tmpfiles="$tmpfiles $LIBMOVESCRIPT"  tmpfiles="$tmpfiles $LIBMOVESCRIPT"
83    tmpfiles="$tmpfiles $PCEDITTMP"
84  #  #
85  # make sure we always clean up after ourselves...  # make sure we always clean up after ourselves...
86  #  #
# Line 334  Line 341 
341  reglib() {  reglib() {
342      if [ x$MOVE_LIBRARIES = xtrue ] ; then      if [ x$MOVE_LIBRARIES = xtrue ] ; then
343          FINALLOCATION=$LIBDIR/$1          FINALLOCATION=$LIBDIR/$1
344            FINALCONFIGPATH=$1
345      else      else
346          FINALLOCATION=$SRCDIR/$2          FINALLOCATION=$SRCDIR/$2
347            FINALCONFIGPATH=$FINALLOCATION
348      fi      fi
349      if [ -d $FINALLOCATION/CM/$ARCH-unix ] ; then      if [ -d $FINALLOCATION/CM/$ARCH-unix ] ; then
350          echo "$this: Library $1 already exists in $FINALLOCATION."          echo "$this: Library $1 already exists in $FINALLOCATION."
351      else      else
352          echo "$this: Scheduling library $1 to be built in $FINALLOCATION."          echo "$this: Scheduling library $1 to be built in $FINALLOCATION."
353          echo "  andalso CM.stabilize false \"$1\"" >>$LIBLIST          echo "  andalso CM.stabilize false \"\$/$1\"" >>$LIBLIST
354          echo $1 $SRCDIR/$2 >>$LOCALPATHCONFIG          echo $1 $SRCDIR/$2 >>$LOCALPATHCONFIG
355          if [ x$MOVE_LIBRARIES = xtrue ] ; then          if [ x$MOVE_LIBRARIES = xtrue ] ; then
356              echo movelibs $SRCDIR/$2 $1 >>$LIBMOVESCRIPT              echo movelibs $SRCDIR/$2 $1 >>$LIBMOVESCRIPT
357          fi          fi
         echo $1 $FINALLOCATION >>$CM_PATHCONFIG_DEFAULT  
358      fi      fi
359        echo $1 $FINALCONFIGPATH >>$CM_PATHCONFIG_DEFAULT
360  }  }
361    
362  #  #
# Line 448  Line 457 
457  installdriver _run-sml .run-sml  installdriver _run-sml .run-sml
458  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
459  installdriver _ml-build ml-build  installdriver _ml-build ml-build
460    installdriver _ml-makedepend ml-makedepend
461    
462  #  #
463  # set some architecture dependent run-time system flags  # set some architecture dependent run-time system flags
# Line 504  Line 514 
514      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
515      if [ -x run.$ARCH-$OPSYS ]; then      if [ -x run.$ARCH-$OPSYS ]; then
516          mv run.$ARCH-$OPSYS $RUNDIR          mv run.$ARCH-$OPSYS $RUNDIR
517          # $MAKE MAKE=$MAKE clean          $MAKE MAKE=$MAKE clean
518      else      else
519          echo "$this: !!! Run-time system build failed for some reason."          echo "$this: !!! Run-time system build failed for some reason."
520          exit 1          exit 1
# Line 644  Line 654 
654  fi  fi
655    
656  #  #
657  # Finally, move the libraries to their final locations...  # Move the libraries to their final locations...
658  #  #
659    
660  if [ -r $LIBMOVESCRIPT ] ; then  if [ -r $LIBMOVESCRIPT ] ; then
# Line 652  Line 662 
662      . $LIBMOVESCRIPT      . $LIBMOVESCRIPT
663  fi  fi
664    
665    #
666    # Finally, remove duplicate entries from pathconfig file...
667    #
668    if [ -f $CM_PATHCONFIG_DEFAULT ] ; then
669        cp $CM_PATHCONFIG_DEFAULT $PCEDITTMP
670        rm -f $CM_PATHCONFIG_DEFAULT
671        awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }
672    NF != 2 { print $0 }
673    END { for (i in mapping) print i, mapping[i] }' \
674          | sort >$CM_PATHCONFIG_DEFAULT
675    fi
676    
677  exit 0  exit 0

Legend:
Removed from v.615  
changed lines
  Added in v.814

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