--- txt2docbook-0.91.old/txt2docbook.pl +++ txt2docbook-0.91/txt2docbook.pl @@ -1,5 +1,6 @@ #!/usr/bin/perl +use lib '__META_PREFIX__/program'; ########################################################## # Converts simple formatted ASCII Texts to DocBook XML @@ -308,15 +309,16 @@ $OUTPUTMODULE = "output_$opt_o.pl"; } -# test wether the outputmodule exists -if ( ! -e $OUTPUTMODULE ) { - print STDERR "Error. The output-module $OUTPUTMODULE does not exist or could not be found within the current path.\n\n"; - printhelp; -} +$OUTPUTMODULE = "__META_PREFIX__/program/$OUTPUTMODULE"; +# test whether the outputmodule exists +if ( ! -e $OUTPUTMODULE ) { + print STDERR "Error. The output-module $OUTPUTMODULE does not exist or could not be found within the current path.\n\n"; + exit 1; +} -$filename = shift or printhelp; +$filename = shift or printhelp; my $tagmode;