2 # See the NOTICE file distributed with this work for additional information
3 # regarding copyright ownership.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
33 GetOptions( $opts, qw/verbose help/) or pod2usage(-msg => 'Error during command line parsing', -exitlevel => 1, -verbose => 1);
34 pod2usage(-exitlevel => 0, -verbose => 2) if $opts->{help};
36 pod2usage(-msg =>
'No file given', -exitlevel => 1, -verbose => 1) if ! $file;
37 pod2usage(-msg => 'File '.$file.' does not exist', -exitlevel => 1, -verbose => 1) if ! -f $file;
38 my ($ext) = lc($ARGV[0]) =~ /\.([a-z]+)$/;
40 if( $ext eq 'pl' || $ext eq 'pm' || $ext eq 'perl' ) {
41 print STDERR
"Working with a Perl file\n" if $opts->{verbose};
46 print STDERR
"Passing file through\n" if $opts->{verbose};
56 ensembldoxygenfilter.pl
60 ./ensembldoxygenfilter.pl -v modules/
Bio/
EnsEMBL/Registry.pm
62 ./ensembldoxygenfilter.pl -help
66 Generate Doxygen compatible filtered files from Ensembl POD. Bring
this onto
67 your PATH and edit your Doxygen configuration file and specify
69 INPUT_FILTER=ensembldoxygenfilter.pl
71 The code has been flagged as executable in CVS and so should be
self
72 executing once you check it out.
80 Prints messages to STDERR