Changeset 14734


Ignore:
Timestamp:
2007-10-26T16:28:34+13:00 (17 years ago)
Author:
shaoqun
Message:

make it use the new version of plugout.pm

File:
1 edited

Legend:

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

    r12640 r14734  
    151151    }
    152152
    153     my $plugout = shift (@ARGV);
    154     if (defined $plugout) {
    155     $plugout =~ s/\.pm$//; # allow xxxPlugout.pm as the argument
     153    my $plugout_name = shift (@ARGV);
     154
     155    if (defined $plugout_name) {
     156    $plugout_name =~ s/\.pm$//; # allow xxxPlugout.pm as the argument
    156157    }
    157158
     
    172173    print STDERR "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
    173174    print STDERR "<PlugoutList length=\"" . scalar(@plugout_list) . "\">\n";
    174     foreach my $plugout (@plugout_list) {
    175         $plugout =~ s/\.pm$//;
     175    foreach my $plugout_name (@plugout_list) {
     176        $plugout_name =~ s/\.pm$//;
     177        my $plugout;
     178        push @$plugout,$plugout_name;
    176179        my $plugoutobj = &plugout::load_plugout ($plugout);
    177180        if ($describeall) {
     
    181184        $plugoutobj->print_xml_usage(0, 1);
    182185        }
     186       
    183187    }
    184188    print STDERR "</PlugoutList>\n";
    185189    }
    186190    else {
    187     &print_single_plugout($plugout, $xml, 1);
    188     }
     191    &print_single_plugout($plugout_name, $xml, 1);
     192    }
     193
     194 
    189195}
    190196
    191197
    192198sub print_single_plugout {
    193     my ($plugout, $xml, $header) = @_;
    194     my $plugoutobj = &plugout::load_plugout($plugout,[]);
     199    my ($plugout_name, $xml, $header) = @_;
     200    my $plugout;
     201
     202    push @$plugout,$plugout_name;
     203
     204    my $plugoutobj = &plugout::load_plugout($plugout);
    195205
    196206    if ($xml) {
Note: See TracChangeset for help on using the changeset viewer.