Changeset 12625 for trunk/gsdl


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.

Location:
trunk/gsdl/bin/script
Files:
4 edited

Legend:

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

    r12614 r12625  
    142142    if ($listall) {
    143143    my $class_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","classify");
    144    
    145144    if (!opendir (INDIR, $class_dir)) {
    146145        print STDERR "classinfo.pl: could not open directory $class_dir\n";
    147     } else {
     146    }
     147    else {
    148148        my @class_list = grep (/\.pm$/, readdir (INDIR));
    149149        closedir (INDIR);
     
    153153
    154154        print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    155         print STDERR "<!DOCTYPE ClassifyList [\n";
    156         print STDERR "  <!ELEMENT ClassifyList (ClassifyName*)>\n";
    157         print STDERR "  <!ELEMENT ClassifyName (#PCDATA)>\n";
    158         print STDERR "  <!ATTLIST ClassifyList\n";
    159         print STDERR "            length CDATA #REQUIRED>\n";
    160         print STDERR "]>\n";
    161 
    162155        print STDERR "<ClassifyList length=\"$num_class\">\n";
    163156        map { print STDERR "  <ClassifyName>$_</ClassifyName>\n"; } @class_list;
    164157        print STDERR "</ClassifyList>\n";
    165 
    166158        }
    167159        else {
     
    169161        }
    170162    }
    171 
    172163    }
    173164    elsif ($describeall) {
     
    176167    if (!opendir (INDIR, $class_dir)) {
    177168        print STDERR "classinfo.pl: could not open directory $class_dir\n";
    178     } else {
     169    }
     170    else {
    179171        @class_list = grep (/\.pm$/, readdir (INDIR));
    180172        closedir (INDIR);
  • trunk/gsdl/bin/script/downloadinfo.pl

    r12615 r12625  
    160160    if ($listall) {
    161161    my $download_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","downloaders");
    162    
    163162    if (!opendir (INDIR, $download_dir)) {
    164163        print STDERR "downloadinfo.pl: could not open directory $download_dir\n";
    165     } 
     164    }
    166165    else {
    167166        my @download_list = grep (/Download\.pm$/, readdir (INDIR));
     
    172171       
    173172        print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    174         print STDERR "<!DOCTYPE DownloadList [\n";
    175         print STDERR "  <!ELEMENT DownloadList (DownloadName*)>\n";
    176         print STDERR "  <!ELEMENT DownloadName   (#PCDATA)>\n";
    177         print STDERR "  <!ATTLIST DownloadList\n";
    178         print STDERR "            length CDATA #REQUIRED>\n";
    179             print STDERR "]>\n";
    180        
    181173        print STDERR "<DownloadList length=\"$intNumDownloads\">\n";
    182174        map { print STDERR "  <DownloadName>$_</DownloadName>\n"; } @download_list;
     
    188180    }
    189181    }
    190 
    191182    elsif ($describeall) {
    192183    my $download_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","downloaders");
     
    194185    if (!opendir (INDIR, $download_dir)) {
    195186        print STDERR "downloadinfo.pl: could not open directory $download_dir\n";
    196     } else {
     187    }
     188    else {
    197189        @download_list = grep (/Download\.pm$/, readdir (INDIR));
    198190        closedir (INDIR);
  • 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);
  • trunk/gsdl/bin/script/plugoutinfo.pl

    r12615 r12625  
    164164    if ($listall) {
    165165    my $plugout_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","plugouts");
    166    
    167166    if (!opendir (INDIR, $plugout_dir)) {
    168167        print STDERR "plugoutinfo.pl: could not open directory $plugout_dir\n";
    169     } else {
     168    }
     169    else {
    170170        my @plugout_list = grep (/Plugout\.pm$/, readdir (INDIR));
    171171        closedir (INDIR);
    172172
    173 
    174173        if ($xml) {
    175174        my $num_plugouts = scalar(@plugout_list);
    176175
    177176        print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    178         print STDERR "<!DOCTYPE PlugoutList [\n";
    179         print STDERR "  <!ELEMENT PlugoutList (PlugoutName*)>\n";
    180         print STDERR "  <!ELEMENT PlugoutName   (#PCDATA)>\n";
    181         print STDERR "  <!ATTLIST PlugoutList\n";
    182         print STDERR "            length CDATA #REQUIRED>\n";
    183         print STDERR "]>\n";
    184 
    185177        print STDERR "<PlugoutList length=\"$num_plugouts\">\n";
    186178        map { print STDERR "  <PlugoutName>$_</PlugoutName>\n"; } @plugout_list;
    187179        print STDERR "</PlugoutList>\n";
    188 
    189180        }
    190181        else {
     
    192183        }
    193184    }
    194 
    195185    }
    196186    elsif ($describeall) {
     
    199189    if (!opendir (INDIR, $plugout_dir)) {
    200190        print STDERR "plugoutinfo.pl: could not open directory $plugout_dir\n";
    201     } else {
     191    }
     192    else {
    202193        @plugout_list = grep (/Plugout\.pm$/, readdir (INDIR));
    203194        closedir (INDIR);
Note: See TracChangeset for help on using the changeset viewer.