Ignore:
Timestamp:
2006-08-31T13:32:27+12:00 (18 years ago)
Author:
mdewsnip
Message:

Removed the DTD stuff from the top of the XML output... it's just one more unnecessary thing to maintain.

File:
1 edited

Legend:

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

    r12613 r12625  
    162162    if ($listall) {
    163163    my $plugin_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","plugins");
    164    
    165164    if (!opendir (INDIR, $plugin_dir)) {
    166165        print STDERR "pluginfo.pl: could not open directory $plugin_dir\n";
    167     } else {
     166    }
     167    else {
    168168        my @plugin_list = grep (/Plug\.pm$/, readdir (INDIR));
    169169        closedir (INDIR);
    170170
    171 
    172171        if ($xml) {
    173172        my $num_plugins = scalar(@plugin_list);
    174173
    175174        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 
    183175        print STDERR "<PluginList length=\"$num_plugins\">\n";
    184176        map { print STDERR "  <PluginName>$_</PluginName>\n"; } @plugin_list;
    185177        print STDERR "</PluginList>\n";
    186 
    187178        }
    188179        else {
     
    190181        }
    191182    }
    192 
    193183    }
    194184    elsif ($describeall) {
     
    197187    if (!opendir (INDIR, $plugin_dir)) {
    198188        print STDERR "pluginfo.pl: could not open directory $plugin_dir\n";
    199     } else {
     189    }
     190    else {
    200191        @plugin_list = grep (/Plug\.pm$/, readdir (INDIR));
    201192        closedir (INDIR);
Note: See TracChangeset for help on using the changeset viewer.