Ignore:
Timestamp:
2007-10-11T10:45:56+13:00 (17 years ago)
Author:
anna
Message:

Updated Perl Module in Marathi. Many thanks to Shubhada Nagarkar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugout.pm

    r14557 r14657  
    4141         };
    4242
    43 #globaloptions contains any options that should be passed to all plugouts
     43#globaloptions contains any options that should be passed to all plugins
    4444my ($verbosity, $outhandle, $failhandle, $globaloptions);
    4545
    4646sub load_plugout{
    47     my ($plugout) = shift @_;
     47    my ($plugoutname,$plugout_options) = @_;
    4848
    4949    my $colplugdir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib/plugouts");
    50     unshift (@INC, $colplugdir);
    51    
    52     my $plugoutname = shift @$plugout;
    53        
     50     unshift (@INC, $colplugdir);
     51
    5452    # find the plugout
    55     my $customplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "custom", $ENV{'GSDLCOLLECTION'},
    56                          'perllib', 'plugouts', "${plugoutname}.pm");
    57     my $colplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, 'perllib', 'plugouts',
     53    my $colplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},"perllib/plugouts",
    5854                      "${plugoutname}.pm");
    59     my $mainplugname = &util::filename_cat($ENV{'GSDLHOME'}, 'perllib', 'plugouts',
    60                       "${plugoutname}.pm");
    61     if (-e $customplugname) { require $customplugname; }
    62     elsif (-e $colplugname) { require $colplugname; }
     55    my $mainplugname = &util::filename_cat($ENV{'GSDLHOME'},"perllib/plugouts",
     56                       "${plugoutname}.pm");
     57    if (-e $colplugname) { require $colplugname; }
    6358    elsif (-e $mainplugname) { require $mainplugname; }
    6459    else {
    65     gsprintf($outhandle, "{plugout.could_not_find_plugout}\n",
     60    &gsprintf(STDERR, "{plugout.could_not_find_plugout}\n",
    6661         $plugoutname);
    67         die "\n";
     62    die "\n";
    6863    }
    6964
     
    7166    my ($plugobj);
    7267
    73     eval ("\$plugobj = new \$plugoutname([],\$plugout)");
     68    eval ("\$plugobj = new \$plugoutname([],\$plugout_options)");
    7469    die "$@" if $@;
    7570
Note: See TracChangeset for help on using the changeset viewer.