Changeset 12625 for trunk/gsdl/bin/script/pluginfo.pl
- Timestamp:
- 2006-08-31T13:32:27+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/pluginfo.pl
r12613 r12625 162 162 if ($listall) { 163 163 my $plugin_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","plugins"); 164 165 164 if (!opendir (INDIR, $plugin_dir)) { 166 165 print STDERR "pluginfo.pl: could not open directory $plugin_dir\n"; 167 } else { 166 } 167 else { 168 168 my @plugin_list = grep (/Plug\.pm$/, readdir (INDIR)); 169 169 closedir (INDIR); 170 170 171 172 171 if ($xml) { 173 172 my $num_plugins = scalar(@plugin_list); 174 173 175 174 print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; 176 print STDERR "<!DOCTYPE PluginList [\n";177 print STDERR " <!ELEMENT PluginList (PluginName*)>\n";178 print STDERR " <!ELEMENT PluginName (#PCDATA)>\n";179 print STDERR " <!ATTLIST PluginList\n";180 print STDERR " length CDATA #REQUIRED>\n";181 print STDERR "]>\n";182 183 175 print STDERR "<PluginList length=\"$num_plugins\">\n"; 184 176 map { print STDERR " <PluginName>$_</PluginName>\n"; } @plugin_list; 185 177 print STDERR "</PluginList>\n"; 186 187 178 } 188 179 else { … … 190 181 } 191 182 } 192 193 183 } 194 184 elsif ($describeall) { … … 197 187 if (!opendir (INDIR, $plugin_dir)) { 198 188 print STDERR "pluginfo.pl: could not open directory $plugin_dir\n"; 199 } else { 189 } 190 else { 200 191 @plugin_list = grep (/Plug\.pm$/, readdir (INDIR)); 201 192 closedir (INDIR);
Note:
See TracChangeset
for help on using the changeset viewer.