Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/usr/local/bin/perl |
| 2 |
|
| 3 |
use strict; |
| 4 |
use Getopt::Long; |
| 5 |
use Data::Stag; |
| 6 |
use FileHandle; |
| 7 |
|
| 8 |
my $opt = {}; |
| 9 |
GetOptions($opt, |
| 10 |
"format|p=s", |
| 11 |
"datatype|t=s", |
| 12 |
"err|e=s", |
| 13 |
"handler_args|a=s%", |
| 14 |
"handler|h=s"); |
| 15 |
|
| 16 |
use GO::Parser; |
| 17 |
|
| 18 |
my $errf = $opt->{err}; |
| 19 |
my $errhandler = Data::Stag->getformathandler('xml'); |
| 20 |
if ($errf) { |
| 21 |
$errhandler->file($errf); |
| 22 |
} |
| 23 |
else { |
| 24 |
$errhandler->fh(\*STDOUT); |
| 25 |
} |
| 26 |
foreach my $f (@ARGV) { |
| 27 |
my $parser = new GO::Parser($opt); |
| 28 |
$parser->errhandler($errhandler); |
| 29 |
$parser->parse($f); |
| 30 |
} |