Revision: | 1.2 |
Committed: | Mon Mar 29 16:42:27 1999 UTC (26 years, 1 month ago) by williamc |
Branch: | MAIN |
CVS Tags: | 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 |
Changes since 1.1: | +1 -0 lines |
Log Message: | Make sure the built script is executable! |
# | User | Rev | Content |
---|---|---|---|
1 | williamc | 1.1 | #!/usr/local/bin/perl5 |
2 | # | ||
3 | # SCRAM Installation Script | ||
4 | # | ||
5 | # To be run from the Installation directory | ||
6 | # | ||
7 | |||
8 | use Cwd; | ||
9 | $thisdir=cwd(); | ||
10 | (($basedir=$thisdir)=~s/(.*)\/.*/\1/); | ||
11 | ($topdir=$basedir)=~s/(.*)\/.*/\1/; | ||
12 | |||
13 | # Copy the wrapper file with the correct base variable installed | ||
14 | open ( WRAP , "<scramwrapper") or die "Unable to open scramwrapper $!"; | ||
15 | open ( OUTFILE , ">$topdir/scram") or die "Unable to open $topdir/scram $!"; | ||
16 | while ( <WRAP> ) { | ||
17 | $_=~s/__basedir__/$basedir/g; | ||
18 | print OUTFILE $_; | ||
19 | } | ||
20 | williamc | 1.2 | chmod 0755, "$topdir/scram"; |
21 | williamc | 1.1 | close WRAP; |