Package list ibutils / upstream/1.5.7+0.2.gbd7e502 ibmgtsim / doc / ibmgtsim_pod2man
upstream/1.5.7+0.2.gbd7e502

Tree @upstream/1.5.7+0.2.gbd7e502 (Download .tar.gz)

ibmgtsim_pod2man @upstream/1.5.7+0.2.gbd7e502raw · history · blame

eval '(exit $?0)' &&
  eval 'exec perl -S $0 ${1+"$@"}' &&
  eval 'exec perl -S $0 $argv:q'
  if 0;

use Pod::Man;
$VERSION = "IBMGTSIM 1.0";
$CENTER = "IB MANAGEMENT SIMULATOR";
my $parser = Pod::Man->new (release => $VERSION, center => $CENTER);

if (scalar(@ARGV) < 1) {
   print "Usage $0 podFile [outFile]\n";
   exit(1);
}
$inFile = $ARGV[0];
if ($inFile !~ m/(.*)\.pod$/) {
   print "Usage $0 podFile [outFile]\n";
   print "Given podFile:$inFile extension != .pod\n";
   exit(1);
} else {
   $base = $1;
}

if (scalar(@ARGV) > 1) {
   $outFile = $ARGV[1];
} else {
   $outFile = "$base.1";
}

# Read POD from file.pod and write to file.1.
$parser->parse_from_file ($inFile, $outFile);
exit(0);