Changeset 1780


Ignore:
Timestamp:
2000-12-11T13:58:13+13:00 (23 years ago)
Author:
sjboddie
Message:

tidied up mkcol.pl's help text

File:
1 edited

Legend:

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

    r1698 r1780  
    4747    print STDERR "   -optionfile file    Get options from file, useful on systems where\n";
    4848    print STDERR "                       long command lines may cause problems\n";
    49     print STDERR "   -collectdir         Collection directory where new collection ill be created.\n";
     49    print STDERR "   -collectdir         Directory where new collection will be created.\n";
    5050    print STDERR "                       Default is " .
    5151    &util::filename_cat($ENV{'GSDLHOME'}, "collect") . "\n";
    5252    print STDERR "   -creator email      Your email address\n";
    53     print STDERR "   -maintainer email   The current maintainer's email address\n";
     53    print STDERR "   -maintainer email   The collection maintainer's email address (if\n";
     54    print STDERR "                       different from the creator)\n";
    5455    print STDERR "   -public true|false  If this collection has anonymous access\n";
    5556    print STDERR "   -beta true|false    If this collection is still under development\n";
    56 #    print STDERR "   -index type         The indexes which should be made\n";
    57 #    print STDERR "   -indextext name     The index description\n";
    58 #    print STDERR "   -defaultindex type  The index to use if no others are supplied\n";
    59 
    6057    print STDERR "   -title text         The title for the collection\n";
    6158    print STDERR "   -about text         The about text for the collection\n";
    6259    print STDERR "   -plugin text        perl plugin module to use (there may be multiple\n";
    63     print STDERR "                       plugin entries\n";
    64     print STDERR "   -refine   list      Space separated list of perl plugin modules to use\n";
    65 
    66 
     60    print STDERR "                       plugin entries)\n";
     61    print STDERR "  Note that -creator is the only option to mkcol.pl that is mandatory.\n";
     62    print STDERR "  You can make changes to all options later by editing the collect.cfg\n";
     63    print STDERR "  configuration file for your new collection (it'll be in the \"etc\"\n";
     64    print STDERR "  directory).\n\n";
    6765}
    6866
     
    114112        $line =~ s/\*\*public\*\*/$public/g;
    115113        $line =~ s/\*\*beta\*\*/$beta/g;
    116         $line =~ s/\*\*indexes\*\*/$indexesstr/g;
    117         $line =~ s/\*\*indexestext\*\*/$indexestextstr/g;
    118         $line =~ s/\*\*defaultindex\*\*/$defaultindex/g;
    119114        $line =~ s/\*\*title\*\*/$title/g;
    120115        $line =~ s/\*\*about\*\*/$about/g;
    121116        $line =~ s/\*\*plugins\*\*/$pluginstring/g;
    122         $line =~ s/\*\*refine\*\*/$refine/g;
    123117
    124118        print OUTFILE $line;
     
    141135              'public/true|false/true', \$public,
    142136              'beta/true|false/true', \$beta,
    143               'index/.*/document:all', \@indexes,
    144               'indextext/\.*/Terms must appear within the same document', \@indexestext,
    145               'defaultindex/.*/document:all', \$defaultindex,
    146137              'title/.+/', \$title,
    147138              'about/.+/', \$about,
    148               'plugin/.+', \@plugin,
    149               'refine/.+/', \$refine
     139              'plugin/.+', \@plugin
    150140              )) {
    151141    &print_usage();
     
    223213
    224214    # get the strings to include.
    225     $indexesstr = join ("\t", @indexes);
    226     $indexestextstr = "";
    227     for ($i=0; $i<scalar(@indexestext); $i++) {
    228     $indexestextstr .= "_$indexes[$i]_[] {$indexestext[$i]}\n";
    229     }
    230 
    231215    $pluginstring = "";
    232216    foreach $plugin (@plugin) {
Note: See TracChangeset for help on using the changeset viewer.