Changeset 12625 for trunk/gsdl
- Timestamp:
- 2006-08-31T13:32:27+12:00 (18 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/classinfo.pl
r12614 r12625 142 142 if ($listall) { 143 143 my $class_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","classify"); 144 145 144 if (!opendir (INDIR, $class_dir)) { 146 145 print STDERR "classinfo.pl: could not open directory $class_dir\n"; 147 } else { 146 } 147 else { 148 148 my @class_list = grep (/\.pm$/, readdir (INDIR)); 149 149 closedir (INDIR); … … 153 153 154 154 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 162 155 print STDERR "<ClassifyList length=\"$num_class\">\n"; 163 156 map { print STDERR " <ClassifyName>$_</ClassifyName>\n"; } @class_list; 164 157 print STDERR "</ClassifyList>\n"; 165 166 158 } 167 159 else { … … 169 161 } 170 162 } 171 172 163 } 173 164 elsif ($describeall) { … … 176 167 if (!opendir (INDIR, $class_dir)) { 177 168 print STDERR "classinfo.pl: could not open directory $class_dir\n"; 178 } else { 169 } 170 else { 179 171 @class_list = grep (/\.pm$/, readdir (INDIR)); 180 172 closedir (INDIR); -
trunk/gsdl/bin/script/downloadinfo.pl
r12615 r12625 160 160 if ($listall) { 161 161 my $download_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","downloaders"); 162 163 162 if (!opendir (INDIR, $download_dir)) { 164 163 print STDERR "downloadinfo.pl: could not open directory $download_dir\n"; 165 } 164 } 166 165 else { 167 166 my @download_list = grep (/Download\.pm$/, readdir (INDIR)); … … 172 171 173 172 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 181 173 print STDERR "<DownloadList length=\"$intNumDownloads\">\n"; 182 174 map { print STDERR " <DownloadName>$_</DownloadName>\n"; } @download_list; … … 188 180 } 189 181 } 190 191 182 elsif ($describeall) { 192 183 my $download_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","downloaders"); … … 194 185 if (!opendir (INDIR, $download_dir)) { 195 186 print STDERR "downloadinfo.pl: could not open directory $download_dir\n"; 196 } else { 187 } 188 else { 197 189 @download_list = grep (/Download\.pm$/, readdir (INDIR)); 198 190 closedir (INDIR); -
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); -
trunk/gsdl/bin/script/plugoutinfo.pl
r12615 r12625 164 164 if ($listall) { 165 165 my $plugout_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib","plugouts"); 166 167 166 if (!opendir (INDIR, $plugout_dir)) { 168 167 print STDERR "plugoutinfo.pl: could not open directory $plugout_dir\n"; 169 } else { 168 } 169 else { 170 170 my @plugout_list = grep (/Plugout\.pm$/, readdir (INDIR)); 171 171 closedir (INDIR); 172 172 173 174 173 if ($xml) { 175 174 my $num_plugouts = scalar(@plugout_list); 176 175 177 176 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 185 177 print STDERR "<PlugoutList length=\"$num_plugouts\">\n"; 186 178 map { print STDERR " <PlugoutName>$_</PlugoutName>\n"; } @plugout_list; 187 179 print STDERR "</PlugoutList>\n"; 188 189 180 } 190 181 else { … … 192 183 } 193 184 } 194 195 185 } 196 186 elsif ($describeall) { … … 199 189 if (!opendir (INDIR, $plugout_dir)) { 200 190 print STDERR "plugoutinfo.pl: could not open directory $plugout_dir\n"; 201 } else { 191 } 192 else { 202 193 @plugout_list = grep (/Plugout\.pm$/, readdir (INDIR)); 203 194 closedir (INDIR);
Note:
See TracChangeset
for help on using the changeset viewer.