Changeset 10218 for trunk/gsdl/perllib/plugins/LaTeXPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/LaTeXPlug.pm
r8121 r10218 28 28 package LaTeXPlug; 29 29 30 use strict; 31 no strict 'refs'; # so we can print to a handle named by a variable 30 # System complains about $arguments if the strict is set 31 #use strict; 32 #no strict 'refs'; # so we can print to a handle named by a variable 32 33 33 34 # greenstone packages … … 37 38 use util; 38 39 40 my $options={ 'name' => 'LaTeXPlug', 41 'desc' => '{LaTeXPlug.desc}', 42 'abstract' => 'no', 43 'inherits' => 'yes' }; 39 44 sub BEGIN { 40 45 @LaTeXPlug::ISA = ('BasPlug'); … … 46 51 47 52 sub new { 48 my $class = shift (@_); 49 my $self = new BasPlug ($class, @_); 50 $self->{'plugin_type'} = 'LaTeXPlug'; 51 my $option_list = $self->{'option_list'}; 52 my $options={ 'name' => 'LaTeXPlug', 53 'desc' => '{LaTeXPlug.desc}', 54 'abstract' => 'no', 55 'inherits' => 'yes', 56 'args' => [ 57 ] # no arguments for now... 58 }; 59 60 push( @{$option_list}, $options ); 61 62 if (!parsargv::parse(\@_, 63 "allow_extra_options")) { 64 65 print STDERR "\nIncorrect options passed to LaTeXPlug, check your collect.cfg configuration file\n"; 66 $self->print_txt_usage(""); # don't specify which language bundle 67 die "\n"; 68 } 53 my ($class) = shift (@_); 54 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 55 push(@$pluginlist, $class); 56 57 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 58 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 59 60 my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs); 69 61 70 62 $self->{'aux_files'} = {};
Note:
See TracChangeset
for help on using the changeset viewer.