require Pod::PlainText;
@ISA = qw( Pod::PlainText );
}
+ require VMS::Filespec if $^O eq 'VMS';
}
## Hardcode settings for TERMCAP and COLUMNS so we can try to get
sub catfile(@) { File::Spec->catfile(@_); }
my $INSTDIR = abs_path(dirname $0);
-$INSTDIR = (dirname $INSTDIR) if (basename($INSTDIR) eq 'xtra');
+$INSTDIR = VMS::Filespec::unixpath($INSTDIR) if $^O eq 'VMS';
+$INSTDIR =~ s#/$## if $^O eq 'VMS';
$INSTDIR = (dirname $INSTDIR) if (basename($INSTDIR) eq 'pod');
$INSTDIR = (dirname $INSTDIR) if (basename($INSTDIR) eq 't');
my @PODINCDIRS = ( catfile($INSTDIR, 'lib', 'Pod'),
+ catfile($INSTDIR, 'scripts'),
catfile($INSTDIR, 'pod'),
- catfile($INSTDIR, 't', 'pod'),
- catfile($INSTDIR, 't', 'pod', 'xtra')
+ catfile($INSTDIR, 't', 'pod')
);
## Find the path to the file to =include
print $out_fh "###### end =include $incbase #####\n" if ($incdebug);
}
+sub begin_input {
+ $_[0]->{_INFILE} = VMS::Filespec::unixify($_[0]->{_INFILE}) if $^O eq 'VMS';
+}
+
sub podinc2plaintext( $ $ ) {
my ($infile, $outfile) = @_;
local $_;