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

Diff of /sml/trunk/config/install.sh

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

revision 1145, Fri Mar 15 02:30:53 2002 UTC revision 1201, Fri May 17 20:48:38 2002 UTC
# Line 149  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 210  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 507  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 701  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 739  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 818  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 868  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.1145  
changed lines
  Added in v.1201

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