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

revision 615, Wed Apr 12 04:52:09 2000 UTC revision 828, Fri May 11 18:32:07 2001 UTC
# Line 56  Line 56 
56  SRCDIR=$ROOT/src                # where the source tree is rooted  SRCDIR=$ROOT/src                # where the source tree is rooted
57  LIBDIR=$INSTALLDIR/lib          # where libraries live  LIBDIR=$INSTALLDIR/lib          # where libraries live
58  LIBLIST=$ROOT/liblist           # list of commands to stabilize libraries  LIBLIST=$ROOT/liblist           # list of commands to stabilize libraries
59    LATESTANDALONES=$ROOT/latestandalones # standalone programs to be built late
60  LIBMOVESCRIPT=$ROOT/libmove     # a temporary script  LIBMOVESCRIPT=$ROOT/libmove     # a temporary script
61  LOCALPATHCONFIG=$INSTALLDIR/pathconfig # a temporary pathconfig file  LOCALPATHCONFIG=$INSTALLDIR/pathconfig # a temporary pathconfig file
62    
63  URLGETTER=unknown  URLGETTER=unknown
64    
65  #  #
66  # 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
67    # ml-makedepend live
68  #  #
69  TOOLDIR=$BINDIR  TOOLDIR=$BINDIR
70    
71  #  #
72    # A temporary file for post-editing the pathconfig file...
73    #
74    PCEDITTMP=$INSTALLDIR/pcedittmp.$$
75    
76    #
77  # files to be deleted after we are done...  # files to be deleted after we are done...
78  #  #
79  tmpfiles=""  tmpfiles=""
80  tmpfiles="$tmpfiles $ROOT/preloads.standard"  tmpfiles="$tmpfiles $ROOT/preloads.standard"
81  tmpfiles="$tmpfiles $LIBLIST"  tmpfiles="$tmpfiles $LIBLIST"
82    tmpfiles="$tmpfiles $LATESTANDALONES"
83  tmpfiles="$tmpfiles $LOCALPATHCONFIG"  tmpfiles="$tmpfiles $LOCALPATHCONFIG"
84  tmpfiles="$tmpfiles $LIBMOVESCRIPT"  tmpfiles="$tmpfiles $LIBMOVESCRIPT"
85    tmpfiles="$tmpfiles $PCEDITTMP"
86  #  #
87  # make sure we always clean up after ourselves...  # make sure we always clean up after ourselves...
88  #  #
# Line 334  Line 343 
343  reglib() {  reglib() {
344      if [ x$MOVE_LIBRARIES = xtrue ] ; then      if [ x$MOVE_LIBRARIES = xtrue ] ; then
345          FINALLOCATION=$LIBDIR/$1          FINALLOCATION=$LIBDIR/$1
346            FINALCONFIGPATH=$1
347      else      else
348          FINALLOCATION=$SRCDIR/$2          FINALLOCATION=$SRCDIR/$2
349            FINALCONFIGPATH=$FINALLOCATION
350      fi      fi
351      if [ -d $FINALLOCATION/CM/$ARCH-unix ] ; then      if [ -d $FINALLOCATION/CM/$ARCH-unix ] ; then
352          echo "$this: Library $1 already exists in $FINALLOCATION."          echo "$this: Library $1 already exists in $FINALLOCATION."
353      else      else
354          echo "$this: Scheduling library $1 to be built in $FINALLOCATION."          echo "$this: Scheduling library $1 to be built in $FINALLOCATION."
355          echo "  andalso CM.stabilize false \"$1\"" >>$LIBLIST          echo "  andalso CM.stabilize false \"\$/$1\"" >>$LIBLIST
356          echo $1 $SRCDIR/$2 >>$LOCALPATHCONFIG          echo $1 $SRCDIR/$2 >>$LOCALPATHCONFIG
357          if [ x$MOVE_LIBRARIES = xtrue ] ; then          if [ x$MOVE_LIBRARIES = xtrue ] ; then
358              echo movelibs $SRCDIR/$2 $1 >>$LIBMOVESCRIPT              echo movelibs $SRCDIR/$2 $1 >>$LIBMOVESCRIPT
359          fi          fi
         echo $1 $FINALLOCATION >>$CM_PATHCONFIG_DEFAULT  
360      fi      fi
361        echo $1 $FINALCONFIGPATH >>$CM_PATHCONFIG_DEFAULT
362  }  }
363    
364  #  #
# Line 448  Line 459 
459  installdriver _run-sml .run-sml  installdriver _run-sml .run-sml
460  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
461  installdriver _ml-build ml-build  installdriver _ml-build ml-build
462    installdriver _ml-makedepend ml-makedepend
463    
464  #  #
465  # set some architecture dependent run-time system flags  # set some architecture dependent run-time system flags
# Line 504  Line 516 
516      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS      $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
517      if [ -x run.$ARCH-$OPSYS ]; then      if [ -x run.$ARCH-$OPSYS ]; then
518          mv run.$ARCH-$OPSYS $RUNDIR          mv run.$ARCH-$OPSYS $RUNDIR
519          # $MAKE MAKE=$MAKE clean          $MAKE MAKE=$MAKE clean
520      else      else
521          echo "$this: !!! Run-time system build failed for some reason."          echo "$this: !!! Run-time system build failed for some reason."
522          exit 1          exit 1
# Line 584  Line 596 
596          standalone ml-burg ML-Burg          standalone ml-burg ML-Burg
597          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG_DEFAULT
598          ;;          ;;
599          ml-nlffigen)
600            echo standalone ml-nlffigen ML-NLFFI-Gen >>$LATESTANDALONES
601            echo ml-nlffigen $TOOLDIR >>$CM_PATHCONFIG_DEFAULT
602            ;;
603        smlnj-lib)        smlnj-lib)
604          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib
605    
# Line 617  Line 633 
633          unpack EXene $SRCDIR eXene eXene          unpack EXene $SRCDIR eXene eXene
634          reglib eXene.cm eXene          reglib eXene.cm eXene
635          ;;          ;;
636          ckit)
637            unpack "C-Kit" $ROOT ckit ckit
638            reglib ckit-lib.cm ../ckit/src
639            ;;
640          ml-nlffi-lib)
641            unpack "NLFFI Library" $SRCDIR ml-nlffi-lib ml-nlffi-lib
642            reglib memory.cm ml-nlffi-lib/memory
643            reglib c-int.cm ml-nlffi-lib/internals
644            reglib c.cm ml-nlffi-lib
645            ;;
646        doc)        doc)
647          unpack Doc $ROOT doc doc          unpack Doc $ROOT doc doc
648          cd $ROOT/doc          cd $ROOT/doc
# Line 644  Line 670 
670  fi  fi
671    
672  #  #
673  # Finally, move the libraries to their final locations...  # Move the libraries to their final locations...
674  #  #
675    
676  if [ -r $LIBMOVESCRIPT ] ; then  if [ -r $LIBMOVESCRIPT ] ; then
# Line 652  Line 678 
678      . $LIBMOVESCRIPT      . $LIBMOVESCRIPT
679  fi  fi
680    
681    #
682    # Build "late" standalone programs (i.e., those that must be built
683    # after libraries are already in place):
684    #
685    
686    if [ -r $LATESTANDALONES ] ; then
687        echo $this: Building late standalone programs.
688        . $LATESTANDALONES
689    fi
690    
691    #
692    # Finally, remove duplicate entries from pathconfig file...
693    #
694    if [ -f $CM_PATHCONFIG_DEFAULT ] ; then
695        cp $CM_PATHCONFIG_DEFAULT $PCEDITTMP
696        rm -f $CM_PATHCONFIG_DEFAULT
697        awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }
698    NF != 2 { print $0 }
699    END { for (i in mapping) print i, mapping[i] }' \
700          | sort >$CM_PATHCONFIG_DEFAULT
701    fi
702    
703  exit 0  exit 0

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

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