Changeset 27656 for other-projects


Ignore:
Timestamp:
2013-06-18T19:35:29+12:00 (11 years ago)
Author:
ak19
Message:

Fix for files not getting copied over into the upload_dir on the 32 bit VM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/task.pl

    r27637 r27656  
    3737# or, if one should be checked out, which revision to checkout from svn
    3838$ENV{'SVN_OPT_REV'} = "-r head";
    39 #export GSDLHOME=
    40 #export GSDL3SRCHOME=
     39#$ENV{'GSDLHOME'}=
     40#$ENV{'GSDL3SRCHOME'}=
    4141
    4242
     
    504504    # ensure the upload directory exists before trying to transfer the xml and html files across
    505505    # if it already existed, clear it of contents
    506     if (!-d $ENV{'UPLOAD_DIR'}) {
     506    if (! -d $ENV{'UPLOAD_DIR'}) {
    507507    &File::Path::make_path($ENV{'UPLOAD_DIR'});
    508508    } # else rm $UPLOAD_DIR/*   
     
    512512    for my $entry (readdir $dh) {
    513513    next if ($entry !~ m/(\.xml|\.html)$/);
     514    # get the absolute path to the files before copying them over
     515    $entry = &filename_concat($ENV{'DATA_DIR'}, $entry);
    514516    copy($entry, $ENV{'UPLOAD_DIR'});
    515517    }
Note: See TracChangeset for help on using the changeset viewer.