Changeset 6926
- Timestamp:
- 2004-03-04T16:38:33+13:00 (20 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/buildcol.pl
r6921 r6926 234 234 'gli', \$gli, 235 235 q^xml^, \$xml)) { 236 &PrintUsage::print_txt_usage($ language, $options, "{buildcol.params}");236 &PrintUsage::print_txt_usage($options, "{buildcol.params}"); 237 237 die "\n"; 238 238 } 239 239 240 # Load the appropriate resource bundle for the language specified 241 # If $language is not defined, the default resource bundle will be loaded 242 &gsprintf::load_resource_bundle($language); 243 240 244 if ($xml) { 241 &PrintUsage::print_xml_usage($ language, $options);245 &PrintUsage::print_xml_usage($options); 242 246 die "\n"; 243 247 } … … 255 259 # get and check the collection 256 260 if (($collection = &util::use_collection(@ARGV, $collectdir)) eq "") { 257 &PrintUsage::print_txt_usage($ language, $options, "{buildcol.params}");261 &PrintUsage::print_txt_usage($options, "{buildcol.params}"); 258 262 die "\n"; 259 263 } -
trunk/gsdl/bin/script/classinfo.pl
r6921 r6926 88 88 my $collect = ""; 89 89 my $xml = 0; 90 my $language = ""; # Will display in the default language if not set91 90 92 91 # Parse command line … … 96 95 q^language/.*/^, \$language)) 97 96 { 98 &PrintUsage::print_txt_usage($ language, $options, "{classinfo.params}", 1);97 &PrintUsage::print_txt_usage($options, "{classinfo.params}", 1); 99 98 die "\n"; 100 99 } 100 101 # Load the appropriate resource bundle for the language specified 102 # If $language is not defined, the default resource bundle will be loaded 103 &gsprintf::load_resource_bundle($language); 101 104 102 105 # Get classifier … … 104 107 if (!defined $classifier || $classifier eq "") { 105 108 &gsprintf(STDERR, "{classinfo.no_classifier_name}\n\n"); 106 &PrintUsage::print_txt_usage($ language, $options, "{classinfo.params}", 1);109 &PrintUsage::print_txt_usage($options, "{classinfo.params}", 1); 107 110 die "\n"; 108 111 } … … 119 122 120 123 if ($xml) { 121 $classobj->print_xml_usage( $language);124 $classobj->print_xml_usage(); 122 125 } 123 126 else { … … 128 131 &gsprintf(STDERR, "{classinfo.general_options}\n\n"); 129 132 130 $classobj->print_txt_usage( $language);133 $classobj->print_txt_usage(); 131 134 } 132 135 } -
trunk/gsdl/bin/script/exportcol.pl
r6921 r6926 84 84 q^xml^, \$xml)) { 85 85 86 &PrintUsage::print_txt_usage($language, $options, "{exportcol.params}"); 87 die "\n"; 88 } 86 &PrintUsage::print_txt_usage($options, "{exportcol.params}"); 87 die "\n"; 88 } 89 90 # Load the appropriate resource bundle for the language specified 91 # If $language is not defined, the default resource bundle will be loaded 92 &gsprintf::load_resource_bundle($language); 89 93 90 94 if ($xml) { 91 &PrintUsage::print_xml_usage($ language, $options);95 &PrintUsage::print_xml_usage($options); 92 96 die "\n"; 93 97 } … … 106 110 107 111 if (not @coll_list) { # empty list 108 &PrintUsage::print_txt_usage($ language, $options, "{exportcol.params}");112 &PrintUsage::print_txt_usage($options, "{exportcol.params}"); 109 113 exit(1); 110 114 } -
trunk/gsdl/bin/script/import.pl
r6921 r6926 244 244 'gli', \$gli, 245 245 q^xml^, \$xml)) { 246 &PrintUsage::print_txt_usage($ language, $options, "{import.params}");246 &PrintUsage::print_txt_usage($options, "{import.params}"); 247 247 die "\n"; 248 248 } 249 249 250 # Load the appropriate resource bundle for the language specified 251 # If $language is not defined, the default resource bundle will be loaded 252 &gsprintf::load_resource_bundle($language); 253 250 254 if ($xml) { 251 &PrintUsage::print_xml_usage($ language, $options);255 &PrintUsage::print_xml_usage($options); 252 256 die "\n"; 253 257 } … … 267 271 # get and check the collection name 268 272 if (($collection = &util::use_collection(@ARGV, $collectdir)) eq "") { 269 &PrintUsage::print_txt_usage($ language, $options, "{import.params}");273 &PrintUsage::print_txt_usage($options, "{import.params}"); 270 274 die "\n"; 271 275 } -
trunk/gsdl/bin/script/mkcol.pl
r6921 r6926 202 202 q^xml^, \$xml 203 203 )) { 204 &PrintUsage::print_txt_usage($ language, $options, "{mkcol.params}");204 &PrintUsage::print_txt_usage($options, "{mkcol.params}"); 205 205 die "\n"; 206 206 } … … 211 211 &parse_args (\@ARGV); 212 212 213 # Load the appropriate resource bundle for the language specified 214 # If $language is not defined, the default resource bundle will be loaded 215 &gsprintf::load_resource_bundle($language); 216 213 217 if ($xml) { 214 &PrintUsage::print_xml_usage($ language, $options);218 &PrintUsage::print_xml_usage($options); 215 219 die "\n"; 216 220 } … … 238 242 if (!defined($collection)) { 239 243 &gsprintf(STDOUT, "{mkcol.no_colname}\n"); 240 &PrintUsage::print_txt_usage($ language, $options, "{mkcol.params}");244 &PrintUsage::print_txt_usage($options, "{mkcol.params}"); 241 245 die "\n"; 242 246 } -
trunk/gsdl/bin/script/pluginfo.pl
r6921 r6926 72 72 my $collect = ""; 73 73 my $xml = 0; 74 my $language = ""; # Will display in the default language if not set75 74 76 75 if (!parsargv::parse(\@ARGV, … … 79 78 q^language/.*/^, \$language)) 80 79 { 81 &PrintUsage::print_txt_usage($ language, $options, "{pluginfo.params}", 1);80 &PrintUsage::print_txt_usage($options, "{pluginfo.params}", 1); 82 81 die "\n"; 83 82 } 83 84 # Load the appropriate resource bundle for the language specified 85 # If $language is not defined, the default resource bundle will be loaded 86 &gsprintf::load_resource_bundle($language); 84 87 85 88 my $plugin = shift (@ARGV); 86 89 if (!defined $plugin || $plugin eq "") { 87 90 &gsprintf(STDERR, "{pluginfo.no_plugin_name}\n\n"); 88 &PrintUsage::print_txt_usage($ language, $options, "{pluginfo.params}", 1);91 &PrintUsage::print_txt_usage($options, "{pluginfo.params}", 1); 89 92 die "\n"; 90 93 } … … 100 103 101 104 if ($xml) { 102 $plugobj->print_xml_usage( $language);105 $plugobj->print_xml_usage(); 103 106 } 104 107 else { … … 109 112 &gsprintf(STDERR, "{pluginfo.general_options}\n\n"); 110 113 111 $plugobj->print_txt_usage( $language);114 $plugobj->print_txt_usage(); 112 115 } 113 116 }
Note:
See TracChangeset
for help on using the changeset viewer.