| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | use File::Copy; |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | $c = "u"; |
|---|
| 14 | |
|---|
| 15 | $last_dir = "$c:/pub/gary/bleeding_edge/last/"; |
|---|
| 16 | |
|---|
| 17 | $beta_dir = "$c:/pub/gary/bleeding_edge/beta/"; |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = |
|---|
| 21 | gmtime(time); |
|---|
| 22 | |
|---|
| 23 | $year = sprintf("%02d", $year % 100); |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | $month = sprintf("%02d", $mon+1); |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | $basename = "$year"."$month"."$mday" ; |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | chdir( $last_dir ) or die " invalid directory for output of test suite\n"; |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | $data_tar = "$beta_dir"."$basename"."_data.tar.gz" ; |
|---|
| 36 | $data_zip = "$beta_dir"."$basename"."_data.zip" ; |
|---|
| 37 | |
|---|
| 38 | $source_tar = "$beta_dir"."$basename"."_source.tar.gz"; |
|---|
| 39 | $source_zip = "$beta_dir"."$basename"."_source.zip"; |
|---|
| 40 | |
|---|
| 41 | $tsuite_tar = "$beta_dir"."$basename"."_tsuite.tar.gz"; |
|---|
| 42 | $tsuite_zip = "$beta_dir"."$basename"."_tsuite.zip"; |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | if( !copy( "data.tar.gz" , $data_tar ) ) |
|---|
| 47 | { |
|---|
| 48 | printf(" could not copy data tar\n"); |
|---|
| 49 | send_mail_fail(); |
|---|
| 50 | exit(1); |
|---|
| 51 | } |
|---|
| 52 | if( !copy( "data.zip" , $data_zip ) ) |
|---|
| 53 | { |
|---|
| 54 | printf(" could not copy data zip\n"); |
|---|
| 55 | send_mail_fail(); |
|---|
| 56 | exit(1); |
|---|
| 57 | } |
|---|
| 58 | printf(" copied data tar and zip\n"); |
|---|
| 59 | |
|---|
| 60 | if( !copy( "source.tar.gz" , $source_tar ) ) |
|---|
| 61 | { |
|---|
| 62 | printf(" could not copy source tar\n"); |
|---|
| 63 | send_mail_fail(); |
|---|
| 64 | exit(1); |
|---|
| 65 | } |
|---|
| 66 | if( !copy( "source.zip" , $source_zip ) ) |
|---|
| 67 | { |
|---|
| 68 | printf(" could not copy source zip\n"); |
|---|
| 69 | send_mail_fail(); |
|---|
| 70 | exit(1); |
|---|
| 71 | } |
|---|
| 72 | printf(" copied source tar and zip\n"); |
|---|
| 73 | |
|---|
| 74 | if( !copy( "tsuite.tar.gz" , $tsuite_tar ) ) |
|---|
| 75 | { |
|---|
| 76 | printf(" could not copy tsuite tar\n"); |
|---|
| 77 | send_mail_fail(); |
|---|
| 78 | exit(1); |
|---|
| 79 | } |
|---|
| 80 | if( !copy( "tsuite.zip" , $tsuite_zip ) ) |
|---|
| 81 | { |
|---|
| 82 | printf(" could not copy tsuite zip\n"); |
|---|
| 83 | send_mail_fail(); |
|---|
| 84 | exit(1); |
|---|
| 85 | } |
|---|
| 86 | printf(" copied tsuite tar and zip\n"); |
|---|
| 87 | |
|---|
| 88 | |
|---|