|
Revision 314, 1.6 kB
(checked in by gary, 3 years ago)
|
|
add script runh.pl
change current to trunk in remaining perl scripts
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | if(-e "trunk.exe" ) |
|---|
| 10 | { |
|---|
| 11 | system("copy \"trunk.exe\" \"cloudy_bak.exe\" "); |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | system("copy l:\\projects\\cloudy\\trunk\\release\\trunk.exe . "); |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | $exe = "trunk.exe"; |
|---|
| 23 | |
|---|
| 24 | $nMod = 0; |
|---|
| 25 | $nSkip = 0; |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | while ( defined( $input = glob("h2_*.in") ) ) |
|---|
| 30 | { |
|---|
| 31 | if ( $nMod>=$nSkip ) |
|---|
| 32 | { |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | print( "$input going to " ); |
|---|
| 36 | $output = $input; |
|---|
| 37 | $output =~ s/\.in//gi; |
|---|
| 38 | if( -e "$output".".out" ) |
|---|
| 39 | { |
|---|
| 40 | rename( "$output".".out" , "$output".".bak" ); |
|---|
| 41 | } |
|---|
| 42 | $out = "$output".".out"; |
|---|
| 43 | print("$output\n"); |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | system "$exe < $input > $out"; |
|---|
| 47 | } |
|---|
| 48 | ++$nMod; |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | print("\n=========================\n"); |
|---|
| 52 | printf( "\n %i models were computed, and %i were skipped.\n ",$nMod,$nSkip); |
|---|
| 53 | print("Now use the checkall.pl script to check results.\n"); |
|---|
| 54 | print("=========================\n"); |
|---|
| 55 | |
|---|
| 56 | system("perl mail.pl\" "); |
|---|
| 57 | |
|---|