Changeset 1461 for trunk/gsdl/bin/script


Ignore:
Timestamp:
2000-08-28T11:50:35+12:00 (24 years ago)
Author:
sjboddie
Message:

A few fixes to collectoraction

Location:
trunk/gsdl/bin/script
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/build

    r1454 r1461  
    9898    print STDERR "   -download directory     Directory (or file) to get import documents from.\n";
    9999    print STDERR "                           There may be multiple download directories and they\n";
    100     print STDERR "                           may be of type http://, ftp://, or file://\n.";
     100    print STDERR "                           may be of type http://, ftp://, or file://\n";
    101101    print STDERR "                           Note that any existing import directory will be\n";
    102102    print STDERR "                           deleted to make way for the downloaded data if\n";
     
    279279
    280280    # remove the cached arhives
    281     if ($save_archives) -d "${archivedir}.org") {
     281    if ($save_archives && -d "${archivedir}.org") {
    282282    &util::rm_r ("${archivedir}.org");
    283283    }
  • trunk/gsdl/bin/script/cancel_build.pl

    r1454 r1461  
    6868    }
    6969
     70    my $cdir = &util::filename_cat ($collectdir, $collection);
    7071    if ($collectdir eq "") {
    7172    $collectdir = &util::filename_cat ($ENV{'GSDLHOME'}, "collect");
     73    $cdir = &util::filename_cat ($collectdir, $collection);
     74    } elsif (!-d $cdir) {
     75    $cdir = &util::filename_cat ($ENV{'GSDLHOME'}, "collect", $collection);
    7276    }
    73                        
    74     my $cdir = &util::filename_cat ($collectdir, $collection);
    7577
    7678    if (! -d $cdir) {
Note: See TracChangeset for help on using the changeset viewer.