ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/Installation/scramwrapper
Revision: 1.1
Committed: Mon Mar 29 15:50:44 1999 UTC (26 years, 1 month ago) by williamc
Branch: MAIN
CVS Tags: V0_10_9, V0_10_8, V0_10_7, V0_10_6, V0_10_5, V0_10_4, V0_10_3, V0_10_2, V0_10_1, V0_10_0, V0_10_0beta, V0_9_42, V0_9_41, V0_9_40, V0_9_39, V0_9_38, V0_9_37, V0_9_36, V0_9_35, V0_9_34, V0_9_33, V0_9_32, V0_9_31, V0_9_30, V0_9_29, V0_9_28, V0_9_27, V0_9_26, V0_9_25, V0_9_24, V0_9_23, V0_9_22, V0_9_21, V0_9_20, V0_9_19, V0_9_18, V0_9_17, V0_9_16, V0_9_15, V0_9_14, V0_9_13, V0_9_12, V0_9_11, V0_9_10, V0_9_9, V0_9_8, V0_9_7, V0_9_6, V0_9_5, V0_9_4, V0_9_3, V0_9_2, V0_9_1, V0_9, V0_8, V0_7, V0_6, V0_5, V0_4
Branch point for: V0_9branch
Log Message:
First installation scripts

File Contents

# User Rev Content
1 williamc 1.1 #!/usr/local/bin/perl
2     # Wrap the main scram progrm
3     # Set up any system varibales required and process arguments
4     # immediateley after scram
5    
6     $re='false';
7     while ( $ARGV[0]=~/^-/ ) {
8     if ( $ARGV[0]=~/^-re/ ) { # Always request a User Return to exit the program
9     $re="true";
10     }
11     shift;
12     }
13    
14     # -- If not already set then point to current version
15     if ( $ENV{SCRAM_HOME} eq "" ) {
16     $ENV{SCRAM_HOME}="__basedir__";
17     }
18    
19     # -- Always set PERL5LIB to run scram specific modules
20     $ENV{PERL5LIB}="$ENV{SCRAM_HOME}/src";
21     $ret= system("$ENV{SCRAM_HOME}/src/scram", @ARGV);
22    
23     # -- Dont just exit- ask the user first if -re option specified
24     if ( $re eq 'true' ) {
25     print "\nPress RETURN to exit\n";
26     $junk=<STDIN>;
27     }