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 1201, Fri May 17 20:48:38 2002 UTC revision 1282, Thu Oct 17 13:07:53 2002 UTC
# Line 268  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 393  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 557  Line 557 
557  done  done
558    
559  #  #
 # install the script that tests the architecture, and make sure that it works  
 #  
 if [ -x $BINDIR/.arch-n-opsys ]; then  
     vsay $this: Script $BINDIR/.arch-n-opsys already exists.  
 else  
     cat $CONFIGDIR/_arch-n-opsys \  
     | sed -e "s,@SHELL@,$SHELL,g" > $BINDIR/.arch-n-opsys  
     chmod 555 $BINDIR/.arch-n-opsys  
     if [ ! -x $BINDIR/.arch-n-opsys ]; then  
         complain "$this: !!! Installation of $BINDIR/.arch-n-opsys failed."  
     fi  
 fi  
   
 ARCH_N_OPSYS=`$BINDIR/.arch-n-opsys`  
 if [ "$?" != "0" ]; then  
     echo "$this: !!! Script $BINDIR/.arch-n-opsys fails on this machine."  
     echo "$this: !!! You must patch this by hand and repeat the installation."  
     exit 2  
 else  
     vsay $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS.  
 fi  
 eval $ARCH_N_OPSYS  
   
 #  
560  # Function to install a "driver" script...  # Function to install a "driver" script...
561  #   This takes care of patching the source of the script with the SHELL,  #   This takes care of patching the source of the script with the SHELL,
562  #   BINDIR, and VERSION variables to use.  #   BINDIR, and VERSION variables to use.
# Line 607  Line 583 
583  #   fi  #   fi
584  }  }
585    
586    #
587    # install the script that tests architecture and os...
588    #
589    installdriver _arch-n-opsys .arch-n-opsys
590    
591    #
592    # run it to figure out what architecture and os we are using, define
593    # corresponding variables...
594    #
595    ARCH_N_OPSYS=`$BINDIR/.arch-n-opsys`
596    if [ "$?" != "0" ]; then
597        echo "$this: !!! Script $BINDIR/.arch-n-opsys fails on this machine."
598        echo "$this: !!! You must patch this by hand and repeat the installation."
599        exit 2
600    else
601        vsay $this: Script $BINDIR/.arch-n-opsys reports $ARCH_N_OPSYS.
602    fi
603    eval $ARCH_N_OPSYS
604    
605    #
606    # now install all the other driver scripts...
607    #
608  installdriver _run-sml .run-sml  installdriver _run-sml .run-sml
609  installdriver _link-sml .link-sml  installdriver _link-sml .link-sml
610  installdriver _ml-build ml-build  installdriver _ml-build ml-build

Legend:
Removed from v.1201  
changed lines
  Added in v.1282

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