path correction
Status: Beta
Brought to you by:
tweber
THE BUG:
txt2docbook cannot find output.pl or blocks.pm unless the user
navigates to the folder in which txt2docbook is located to execute the script.
So even if I put txt2docbook, output.pl, and blocks.pm in ~/bin, if I call the script from
anywhere other than ~/bin, the script fails.
THE FIX:
To solve this, move build.pm and output.pl to some directory in your Perl path.
Then hardcode that path into txt2docbook.pl using GNU sed:
sed -i 's%($OUTPUTMODULE)="output.pl"%($OUTPUTMODULE)="/usr/lib64/perl5/site_perl/5.12.3/output.pl"%' txt2docbook.pl
Thanks for a great script!