Ignore:
Timestamp:
2010-03-16T17:23:20+13:00 (14 years ago)
Author:
oranfry
Message:

imrpoved cross-platform compatibility, stopped using compression for upload, upload logs even if products dont exist and fixed log names to include OS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/snapshot/trunk/lib.pl

    r21774 r21797  
    9292    }
    9393
    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 
    9894    #copy products to a temporary folder, giving them their new names
    9995        if ( ! -d "$release_dir/uploads" ) {
     
    10298    mkdir "$release_dir/uploads";
    10399
    104     @files = <$release_dir/products/*>;
     100    my @files;
     101    if ( -d "$release_dir/products" ) {
     102        @files = <$release_dir/products/*>;
     103    }
     104
    105105    push( @files, "$release_dir/$rk.out" );
    106106    for my $file ( @files ) {
     
    115115        system( "cp '$file' '$release_dir/uploads/$filename'" );
    116116    }
    117     my $command = "cd $release_dir/uploads && tar -cz * | ";
     117    my $command = "cd $release_dir/uploads && tar -c * | ";
    118118    $command .= ($^O eq "MSWin32" ? "putty" : "ssh");
    119119    $command .= " -i '$ENV{'IDENTITY_FILE'}' nzdl\@puka.cs.waikato.ac.nz";
    120     #system("$command");
    121120    print "$command\n";
     121    system("$command");
    122122}
Note: See TracChangeset for help on using the changeset viewer.