Hi All,

First of all, thanks for the help people gave me - I have now successfully compiled XMLTV 0.5.27 into a Windows and a Linux executable using PAR 0.79!

I have a 2 questions:

--------------------------

1. XMLTV consists of several separate scripts, but because PAR always generated a "main.pl" script I had problems running my chosen script - i.e. when I had compiled XMLTV like this:

pp -o xmltv.exe grab/tk/tv_grab_uk grab/tk/tv_grab_na grab/tk/tv_grab_dk

(I.e. putting 3 scripts into one exe)

Then running it like this:

xmltv.exe tv_grab_uk

actually ran main.pl instead of the script I wanted, tv_grab_uk.

I got around this by compiling into a PAR archive first:

pp -p -o xmltv.par grab/tk/tv_grab_uk grab/tk/tv_grab_na grab/tk/tv_grab_dk

then unzipping xmltv.par, removing main.pl from the script directory and from the MANIFEST, and then re-zipping it. Then I compiled it with:

pp -o xmltv.exe xmltv.par

and this allowed me to run it like so:

xmltv.exe tv_grab_uk

and it works fine.

Am I missing something obvious? I couldn't find a way to ask pp to build a PAR without main.pl.

--------------------------

2. Actually, to get it to work properly, I had to do a little more. Before re-zipping xmltv.par I had to copy in a couple of dependencies that hadn't been included automatically. I tried to do get pp to do it for me like this:

pp -M XMLTV::Ask::Term -p -o xmltv.par grab/tk/tv_grab_uk grab/tk/tv_grab_na grab/tk/tv_grab_dk

but that seemed to have no effect on the generated xmltv.par at all.

What might I be doing wrong?

--------------------------

Thanks again for all your help.

Andy



Reply via email to