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/mkcol.pl

    r6945 r7101  
    9898}
    9999
    100 
    101 #  sub print_usage {
    102 #      print STDOUT "\n";
    103 #      print STDOUT "mkcol.pl: Creates the directory structure for a new\n";
    104 #      print STDOUT "          Greenstone collection.\n\n";
    105 #      print STDOUT "  usage: $0 -creator email [options] collection-name\n\n";
    106 #      print STDOUT "  options:\n";
    107 #      print STDOUT "   -optionfile file    Get options from file, useful on systems where\n";
    108 #      print STDOUT "                       long command lines may cause problems\n";
    109 #      print STDOUT "   -collectdir         Directory where new collection will be created.\n";
    110 #      print STDOUT "                       Default is " .
    111 #   &util::filename_cat($ENV{'GSDLHOME'}, "collect") . "\n";
    112 #      print STDOUT "   -maintainer email   The collection maintainer's email address (if\n";
    113 #      print STDOUT "                       different from the creator)\n";
    114 #      print STDOUT "   -public true|false  If this collection has anonymous access\n";
    115 #      print STDOUT "   -title text         The title for the collection\n";
    116 #      print STDOUT "   -about text         The about text for the collection\n";
    117 #      print STDOUT "   -plugin text        perl plugin module to use (there may be multiple\n";
    118 #      print STDOUT "                       plugin entries)\n";
    119 #      print STDOUT "   -quiet              Operate quietly\n";
    120 #      print STDOUT "  Note that -creator must be specified. You can make changes to all\n";
    121 #      print STDOUT "  options later by editing the collect.cfg configuration file for your\n";
    122 #      print STDOUT "  new collection (it'll be in the \"etc\" directory).\n\n";
    123 #      print STDOUT "  [Type \"perl -S mkcol.pl | more\" if this help text scrolled off your screen]";
    124 #      print STDOUT "\n" unless $ENV{'GSDLOS'} =~ /^windows$/i;
    125 #  }
    126100
    127101sub traverse_dir
     
    200174              'plugin/.+', \@plugin,
    201175              'quiet', \$quiet,
     176              'gli', \$gli,
    202177              q^xml^, \$xml
    203178              )) {
     
    222197    }
    223198
     199    if ($gli) { # the gli wants strings to be in UTF-8
     200    &gsprintf::output_strings_in_UTF8;
     201    }
     202   
    224203    if ($optionfile =~ /\w/) {
    225204    open (OPTIONS, $optionfile) ||
Note: See TracChangeset for help on using the changeset viewer.