Ignore:
Timestamp:
2009-12-09T11:39:56+13:00 (14 years ago)
Author:
davidb
Message:

Updated mkcol.pl so it creates a collection in the Greenstone3 area (not the Greenstone2's collect folder) when the -site argument is provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/mkcol.pl

    r18603 r21301  
    378378    }
    379379
     380    if ($gs3mode) {
     381    if (!defined $site) {
     382        print STDERR "Warning: -gs3mode is deprecated.\n";
     383        print STDERR "Use -site <name> instead to create a Greenstone 3 collection\n";
     384    }
     385    }
     386    else {
     387    # gs3mode not set
     388    if (defined $site && $site =~ /\w/) {
     389        # Using -site, so -gs3mode implicitly is true
     390        $gs3mode = 1;
     391    }
     392    }
     393
    380394    my $mdir = &util::filename_cat ($ENV{'GSDLHOME'}, "collect", "modelcol");
    381395    my $cdir;
Note: See TracChangeset for help on using the changeset viewer.