Ignore:
Timestamp:
2004-03-22T13:27:17+12:00 (20 years ago)
Author:
kjdon
Message:

removed the old commented out print usage stuff, added gli arg if it didn't have it, if gli arg is set, output strings in utf-8

File:
1 edited

Legend:

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

    r6945 r7101  
    6161
    6262
    63 #sub print_usage {
    64 #    print STDERR "\n";
    65 #    print STDERR "exportcol.pl: Exports  collection for writing to CD-ROM.\n\n";
    66 #    print STDERR "  usage: $0 [options] collection-name\n\n";
    67 #    print STDERR "   -out    Filename or handle to print debug info to.\n";
    68 #    print STDERR "           The default is STDERR\n";
    69 #    print STDERR "   -cdname The name of the cd - this is what will appear in the start menu once the cd is installed.\n";
    70 #    print STDERR "           The default is 'Greenstone Collections'.\n\n";
    71 #}
    72 
    7363&main();
    7464
    7565sub main {
    76     my ($out, $cdname);
     66    my ($language, $out, $cdname, $gli);
    7767
    7868    my $xml = 0;
     
    8272             'out/.*/STDERR', \$out,
    8373             'cdname/.*/', \$cdname,
     74             'gli', \$gli,
    8475             q^xml^, \$xml)) {
    8576
     
    9990    }
    10091
     92    if ($gli) { # the gli wants strings to be in UTF-8
     93    &gsprintf::output_strings_in_UTF8;
     94    }
     95   
    10196    my $dirname="";
    10297    if ($cdname eq "") {
Note: See TracChangeset for help on using the changeset viewer.