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 1073, Fri Feb 15 22:07:38 2002 UTC revision 1252, Fri Jul 5 15:58:01 2002 UTC
# Line 95  Line 95 
95  require() {  require() {
96      require_who=$1      require_who=$1
97      shift      shift
98      for required_x "$@" ; do      if isnotin ${require_who} ${TARGETS} ; then
99            :
100        else
101            for required_x in "$@" ; do
102          if isnotin ${required_x} ${TARGETS} ; then          if isnotin ${required_x} ${TARGETS} ; then
103              echo "Including ${required_x} (needed by ${require_who})."              echo "Including ${required_x} (needed by ${require_who})."
104              request ${required_x}              request ${required_x}
105              CHANGED=true              CHANGED=true
106          fi          fi
107      done      done
108        fi
109  }  }
110    
111  onepass() {  onepass() {
# Line 145  Line 149 
149  #  #
150  MAKE=make  MAKE=make
151    
 #  
 # Make sure we don't have any unpleasant surprises due to the installing  
 # user's process environment:  
 #  
 unset CM_PATHCONFIG  
   
152  SHELL=/bin/sh  SHELL=/bin/sh
153  vsay $this: Using shell $SHELL.  vsay $this: Using shell $SHELL.
154    
# Line 206  Line 204 
204  #  #
205  # set the CM configuration variables (these are environment variables  # set the CM configuration variables (these are environment variables
206  # that will be queried by the bootstrap code)  # that will be queried by the bootstrap code)
207  # Especially important is CM_PATHCONFIG_DEFAULT.  # Especially important is CM_PATHCONFIG.
208  #  #
209  CM_PATHCONFIG_DEFAULT=$LIBDIR/pathconfig  CM_PATHCONFIG=$LIBDIR/pathconfig
210  export CM_PATHCONFIG_DEFAULT  export CM_PATHCONFIG
211    
212  #  #
213  # the release version that we are installing  # the release version that we are installing
# Line 270  Line 268 
268      vsay $this: Fetching $1 from $3. Please stand by...      vsay $this: Fetching $1 from $3. Please stand by...
269      fetched=no      fetched=no
270      for base in $2 $VERSION-$2 ; do      for base in $2 $VERSION-$2 ; do
271          for ext in tar.gz tgz tar.Z tz tar tar.bz2 ; do          for ext in tgz tar.gz tar.Z tz tar tar.bz2 ; do
272              try=$base.$ext              try=$base.$ext
273              vsay $this: Trying $try ...              vsay $this: Trying $try ...
274              if $getter $3/$try $ROOT/$try ; then              if $getter $3/$try $ROOT/$try ; then
# Line 395  Line 393 
393  # The variable $tryfetch is used to make sure this happens only once.  # The variable $tryfetch is used to make sure this happens only once.
394  fetch_n_unpack() {  fetch_n_unpack() {
395      cd $2      cd $2
396      if unarchive "$1" $4.tar.gz un_tar_gz ||      if unarchive "$1" $4.tgz un_tar_gz ||
397         unarchive "$1" $4.tgz un_tar_gz ||         unarchive "$1" $4.tar.gz un_tar_gz ||
398         unarchive "$1" $4.tar.Z un_tar_Z ||         unarchive "$1" $4.tar.Z un_tar_Z ||
399         unarchive "$1" $4.tar un_tar ||         unarchive "$1" $4.tar un_tar ||
400         unarchive "$1" $4.tar.bz2 un_tar_bz2 ||         unarchive "$1" $4.tar.bz2 un_tar_bz2 ||
# Line 503  Line 501 
501              echo movelib ${SRCFINALLOC} ${FINALLOC} >>${LIBMOVESCRIPT}              echo movelib ${SRCFINALLOC} ${FINALLOC} >>${LIBMOVESCRIPT}
502          fi          fi
503      fi      fi
504      echo ${ANCHOR} ${FINALCONFIGPATH} >>${CM_PATHCONFIG_DEFAULT}      echo ${ANCHOR} ${FINALCONFIGPATH} >>${CM_PATHCONFIG}
505  }  }
506    
507  #  #
# Line 697  Line 695 
695              cd $ROOT/$BOOT_FILES              cd $ROOT/$BOOT_FILES
696              for anchor in * ; do              for anchor in * ; do
697                  if [ -d $anchor ] ; then                  if [ -d $anchor ] ; then
698                      echo $anchor $anchor >>$CM_PATHCONFIG_DEFAULT                      echo $anchor $anchor >>$CM_PATHCONFIG
699                      move $anchor $LIBDIR/$anchor                      move $anchor $LIBDIR/$anchor
700                  fi                  fi
701              done              done
# Line 735  Line 733 
733          ;;          ;;
734        ml-yacc)        ml-yacc)
735          standalone ml-yacc ML-Yacc src          standalone ml-yacc ML-Yacc src
736          echo ml-yacc $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-yacc $TOOLDIR >>$CM_PATHCONFIG
737          ;;          ;;
738        ml-lex)        ml-lex)
739          standalone ml-lex ML-Lex          standalone ml-lex ML-Lex
740          echo ml-lex $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-lex $TOOLDIR >>$CM_PATHCONFIG
741          ;;          ;;
742        ml-burg)        ml-burg)
743          standalone ml-burg ML-Burg          standalone ml-burg ML-Burg
744          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-burg $TOOLDIR >>$CM_PATHCONFIG
745          ;;          ;;
746        ml-nlffigen)        ml-nlffigen)
747          echo standalone ml-nlffigen ML-NLFFI-Gen >>$LATESTANDALONES          echo standalone ml-nlffigen ML-NLFFI-Gen >>$LATESTANDALONES
748          echo ml-nlffigen $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo ml-nlffigen $TOOLDIR >>$CM_PATHCONFIG
749          ;;          ;;
750        smlnj-lib)        smlnj-lib)
751          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib          unpack "SML/NJ Library" $SRCDIR smlnj-lib smlnj-lib
# Line 759  Line 757 
757              #reglib html-lib.cm html-lib.cm smlnj-lib/HTML              #reglib html-lib.cm html-lib.cm smlnj-lib/HTML
758          # ... and don't make the PP library ...          # ... and don't make the PP library ...
759              #reglib pp-lib.cm pp-lib.cm smlnj-lib/PP              #reglib pp-lib.cm pp-lib.cm smlnj-lib/PP
760            # ... and don't make the controls library ...
761                #reglib controls-lib.cm controls-lib.cm smlnj-lib/Controls
762          # make the Unix library          # make the Unix library
763              reglib unix-lib.cm unix-lib.cm smlnj-lib/Unix              reglib unix-lib.cm unix-lib.cm smlnj-lib/Unix
764          # make the INet library          # make the INet library
# Line 792  Line 792 
792          ;;          ;;
793        ml-nlffi-lib)        ml-nlffi-lib)
794          unpack "NLFFI Library" $SRCDIR ml-nlffi-lib ml-nlffi-lib          unpack "NLFFI Library" $SRCDIR ml-nlffi-lib ml-nlffi-lib
795          reglib memory.cm memory.cm ml-nlffi-lib/memory          reglib c memory/memory.cm ml-nlffi-lib
796          reglib c-int.cm c-int.cm ml-nlffi-lib/internals          reglib c internals/c-int.cm ml-nlffi-lib
797          reglib c.cm c.cm ml-nlffi-lib          reglib c c.cm ml-nlffi-lib
798          ;;          ;;
799        pgraph-util)        pgraph-util)
800          unpack "CM source code" $SRCDIR cm cm          unpack "CM source code" $SRCDIR cm cm
# Line 812  Line 812 
812        nowhere)        nowhere)
813          unpack "MLRISC Tools Library" $SRCDIR MLRISC MLRISC          unpack "MLRISC Tools Library" $SRCDIR MLRISC MLRISC
814          echo standalone nowhere NoWhere . MLRISC/Tools >>$LATESTANDALONES          echo standalone nowhere NoWhere . MLRISC/Tools >>$LATESTANDALONES
815          echo nowhere $TOOLDIR >>$CM_PATHCONFIG_DEFAULT          echo nowhere $TOOLDIR >>$CM_PATHCONFIG
816          ;;          ;;
817        doc)        doc)
818          echo Package doc is currently unavailable.          echo Package doc is currently unavailable.
# Line 862  Line 862 
862  #  #
863  # Finally, remove duplicate entries from pathconfig file...  # Finally, remove duplicate entries from pathconfig file...
864  #  #
865  if [ -f $CM_PATHCONFIG_DEFAULT ] ; then  if [ -f $CM_PATHCONFIG ] ; then
866      cp $CM_PATHCONFIG_DEFAULT $PCEDITTMP      cp $CM_PATHCONFIG $PCEDITTMP
867      rm -f $CM_PATHCONFIG_DEFAULT      rm -f $CM_PATHCONFIG
868      awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }      awk <$PCEDITTMP 'NF == 2 { mapping[$1] = $2 }
869  NF != 2 { print $0 }  NF != 2 { print $0 }
870  END { for (i in mapping) print i, mapping[i] }' \  END { for (i in mapping) print i, mapping[i] }' \
871        | sort >$CM_PATHCONFIG_DEFAULT        | sort >$CM_PATHCONFIG
872  fi  fi
873    
874  exit 0  exit 0

Legend:
Removed from v.1073  
changed lines
  Added in v.1252

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