Changeset 21797 for other-projects/nightly-tasks/snapshot/trunk/lib.pl
- Timestamp:
- 2010-03-16T17:23:20+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/snapshot/trunk/lib.pl
r21774 r21797 92 92 } 93 93 94 if ( ! -d "$release_dir/products" ) {95 die "error: products directory doesn't exist, exiting. (Well, not that exciting, a bit of a downer really...)";96 }97 98 94 #copy products to a temporary folder, giving them their new names 99 95 if ( ! -d "$release_dir/uploads" ) { … … 102 98 mkdir "$release_dir/uploads"; 103 99 104 @files = <$release_dir/products/*>; 100 my @files; 101 if ( -d "$release_dir/products" ) { 102 @files = <$release_dir/products/*>; 103 } 104 105 105 push( @files, "$release_dir/$rk.out" ); 106 106 for my $file ( @files ) { … … 115 115 system( "cp '$file' '$release_dir/uploads/$filename'" ); 116 116 } 117 my $command = "cd $release_dir/uploads && tar -c z* | ";117 my $command = "cd $release_dir/uploads && tar -c * | "; 118 118 $command .= ($^O eq "MSWin32" ? "putty" : "ssh"); 119 119 $command .= " -i '$ENV{'IDENTITY_FILE'}' nzdl\@puka.cs.waikato.ac.nz"; 120 #system("$command");121 120 print "$command\n"; 121 system("$command"); 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.