| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | use File::Copy; |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | $source_dir = "c:/projects/cloudy/trunk/source/"; |
|---|
| 18 | $data_dir = "c:/projects/cloudy/trunk/data/"; |
|---|
| 19 | $tests_dir = "c:/projects/cloudy/trunk/tsuite/auto/"; |
|---|
| 20 | $ftp_dir = "c:/Inetpub/ftproot/pub/cloudy/"; |
|---|
| 21 | $hazy_dir = "c:/projects/hazy/"; |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | system( |
|---|
| 28 | "rm \"$ftp_dir\"\"data/\"*.*"); |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | if( !chdir( $data_dir ) ) |
|---|
| 32 | { |
|---|
| 33 | printf(" could not move to data directory\n"); |
|---|
| 34 | printf(" was ==%s==\n",$data_dir ); |
|---|
| 35 | exit(1); |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | while( defined( $input = glob("*.dat") ) ) |
|---|
| 40 | { |
|---|
| 41 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | while( defined( $input = glob("*.htm") ) ) |
|---|
| 45 | { |
|---|
| 46 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | while( defined( $input = glob("*.jpg") ) ) |
|---|
| 50 | { |
|---|
| 51 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | while( defined( $input = glob("*.in") ) ) |
|---|
| 55 | { |
|---|
| 56 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | while( defined( $input = glob("*.ini") ) ) |
|---|
| 60 | { |
|---|
| 61 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 62 | } |
|---|
| 63 | |
|---|
| 64 | while( defined( $input = glob("*.rfi") ) ) |
|---|
| 65 | { |
|---|
| 66 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 67 | } |
|---|
| 68 | |
|---|
| 69 | while( defined( $input = glob("*.szd") ) ) |
|---|
| 70 | { |
|---|
| 71 | copy( $input , "$ftp_dir"."data/"."$input" ); |
|---|
| 72 | } |
|---|
| 73 | print( "data copy complete\n"); |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | system( |
|---|
| 79 | "rm \"$ftp_dir\"\"hazy/\"*.*"); |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | if( !chdir( $hazy_dir ) ) |
|---|
| 83 | { |
|---|
| 84 | printf(" could not move to hazy directory\n"); |
|---|
| 85 | printf(" was ==%s==\n",$hazy_dir ); |
|---|
| 86 | exit(1); |
|---|
| 87 | } |
|---|
| 88 | |
|---|
| 89 | while( defined( $input = glob("*.pdf") ) ) |
|---|
| 90 | { |
|---|
| 91 | copy( $input , "$ftp_dir"."hazy/"."$input" ); |
|---|
| 92 | } |
|---|
| 93 | print( "Hazy copy complete\n"); |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | |
|---|
| 98 | system( |
|---|
| 99 | "rm \"$ftp_dir\"\"tests/\"*.*"); |
|---|
| 100 | |
|---|
| 101 | |
|---|
| 102 | if( !chdir( $tests_dir ) ) |
|---|
| 103 | { |
|---|
| 104 | printf(" could not move to tests directory\n"); |
|---|
| 105 | printf(" was ==%s==\n",$tests_dir ); |
|---|
| 106 | exit(1); |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | |
|---|
| 110 | while( defined( $input = glob("*.in") ) ) |
|---|
| 111 | { |
|---|
| 112 | copy( $input , "$ftp_dir"."tests/"."$input" ); |
|---|
| 113 | } |
|---|
| 114 | |
|---|
| 115 | while( defined( $input = glob("*.dat") ) ) |
|---|
| 116 | { |
|---|
| 117 | copy( $input , "$ftp_dir"."tests/"."$input" ); |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | while( defined( $input = glob("*.pl") ) ) |
|---|
| 121 | { |
|---|
| 122 | copy( $input , "$ftp_dir"."tests/"."$input" ); |
|---|
| 123 | } |
|---|
| 124 | |
|---|
| 125 | while( defined( $input = glob("*.htm") ) ) |
|---|
| 126 | { |
|---|
| 127 | copy( $input , "$ftp_dir"."tests/"."$input" ); |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | while( defined( $input = glob("*.jpg") ) ) |
|---|
| 131 | { |
|---|
| 132 | copy( $input , "$ftp_dir"."tests/"."$input" ); |
|---|
| 133 | } |
|---|
| 134 | print( "tsuite copy complete\n"); |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | |
|---|
| 139 | system( |
|---|
| 140 | "rm \"$ftp_dir\"\"source/\"*.*"); |
|---|
| 141 | |
|---|
| 142 | |
|---|
| 143 | if( !chdir( $source_dir ) ) |
|---|
| 144 | { |
|---|
| 145 | printf(" could not move to source directory\n"); |
|---|
| 146 | printf(" was ==%s==\n",$source_dir ); |
|---|
| 147 | exit(1); |
|---|
| 148 | } |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | while( defined( $input = glob("*") ) ) |
|---|
| 152 | { |
|---|
| 153 | copy( $input , "$ftp_dir"."source/"."$input" ); |
|---|
| 154 | } |
|---|
| 155 | print( "source copy complete\n"); |
|---|
| 156 | |
|---|
| 157 | exit(0); |
|---|
| 158 | |
|---|