- Timestamp:
- 2000-07-13T10:21:53+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New_Config_Format-branch/gsdl/bin/script/mkcol.pl
r1031 r1279 51 51 print STDERR " -title text The title for the collection\n"; 52 52 print STDERR " -about text The about text for the collection\n"; 53 print STDERR " -plugins list Space separated list of perl plugin modules to use\n"; 53 print STDERR " -plugin text perl plugin module to use (there may be multiple\n"; 54 print STDERR " plugin entries\n"; 54 55 print STDERR " -refine list Space separated list of perl plugin modules to use\n"; 55 56 … … 106 107 $line =~ s/\*\*title\*\*/$title/g; 107 108 $line =~ s/\*\*about\*\*/$about/g; 108 $line =~ s/\*\*plugins\*\*/$plugins /g;109 $line =~ s/\*\*plugins\*\*/$pluginstring/g; 109 110 $line =~ s/\*\*refine\*\*/$refine/g; 110 111 … … 119 120 120 121 121 my (@indexes, @indexestext );122 my (@indexes, @indexestext, @plugin); 122 123 123 124 # get and check options … … 132 133 'title/.+/', \$title, 133 134 'about/.+/', \$about, 134 'plugin s/.+/GMLPlug TEXTPlug ArcPlug RecPlug/', \$plugins,135 'plugin/.+', \@plugin, 135 136 'refine/.+/', \$refine 136 137 )) { … … 138 139 die "\n"; 139 140 } 140 141 142 # load default plugins if none were on command line 143 if (!scalar(@plugin)) { 144 @plugin = (GMLPlug,TEXTPlug,ArcPlug,RecPlug); 145 } 146 141 147 # get and check the collection name 142 148 ($collection) = @ARGV; … … 195 201 } 196 202 203 $pluginstring = ""; 204 foreach $plugin (@plugin) { 205 $pluginstring .= "plugin $plugin\n"; 206 } 197 207 198 208 # make sure the model collection exists
Note:
See TracChangeset
for help on using the changeset viewer.