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

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

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

revision 1252, Fri Jul 5 15:58:01 2002 UTC revision 1282, Thu Oct 17 13:07:53 2002 UTC
# 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.1252  
changed lines
  Added in v.1282

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