Changeset 7950


Ignore:
Timestamp:
2004-08-16T15:53:43+12:00 (20 years ago)
Author:
davidb
Message:

Exit status resulting from a 'die' statement changed to print and exit 0
combination so when run with -xml flag printing out details it isn't seen
stopping with an error.

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

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/buildcol.pl

    r7330 r7950  
    206206    if ($xml) {
    207207        &PrintUsage::print_xml_usage($options);
    208     die "\n";
     208    print "\n";
     209    return;
    209210    }
    210211
     
    324325
    325326    #set the text index
    326     if ($buildtype eq "mgpp") {
     327    if (($buildtype eq "mgpp") || ($buildtype eq "lucene")) {
    327328    if ($textindex eq "") {
    328329        $textindex = "text";
     
    381382    } else {
    382383    $builderdir = "$ENV{'GSDLHOME'}/perllib";
    383     if ($buildtype eq "mgpp") {
     384    if ($buildtype eq "lucene") {
     385        $buildertype = "lucenebuilder";
     386    }
     387    elsif ($buildtype eq "mgpp") {
    384388        $buildertype = "mgppbuilder";
    385389    }
     
    399403    $builder->init();
    400404
    401     if ($buildertype eq "mgppbuilder" && $no_strip_html) {
     405    if (($buildertype eq "mgppbuilder") && $no_strip_html) {
    402406    $builder->set_strip_html(0);
    403407    }
     408
    404409    if ($mode =~ /^all$/i) {
    405410    $builder->compress_text($textindex);
  • trunk/gsdl/bin/script/import.pl

    r7906 r7950  
    228228    if ($xml) {
    229229        &PrintUsage::print_xml_usage($options);
    230     die "\n";
     230    print "\n";
     231    return;
    231232    }
    232233
Note: See TracChangeset for help on using the changeset viewer.