--- Andy Balaam <andybalaam@xxxxxxxxxxxxxxxxxxxx>
wrote:
> So an automatic script might look a little bit like
> this:
>
> #---------------------
>
> DIRLIST=dep*
>
> for DIR in $DIRLIST; do {
> cd DIR
> perl Makefile.PL
> make
> make install
> } done;
>
> #----------------------
Looks a lot less complicated than the
ApacheToolbox-like script I proposed :-)
> perl Makefile.PL
> make
> make install
When the user does this *after* running the script
above, this is to build the XMLTV package itself, I
assume? Why not include it as part of the script; the
only interaction will be when the user has to indicate
where they live, and what channels they wish to grab
listings for (if they don't want to grab them for
*all* channels, that is)
> (of course, if we put the XMLTV stuff in, say
> depXMLTV, they would be installed as part of the
> dependencies).
Hehe, you already thought of what I just said above
:-)
> Dealing with failures would be tricky, but what do
> people think? Have I missed something bad?
Hmm, I the only real failures (as far as installing
from tarballs goes), I think, would involve missing
development tools (the Perl sources, for example).
This can be corrected by having the script check for
them first, and if they find anything missing, stop,
and inform the user that such-and-such is missing, and
should be installed (most likely from their
distribution CD).
The above script may also get tricky, because some of
the Perl modules depend upon others being installed
first; you would need some way to control the order in
which they get installed (again, easily done, but will
involve a slightly longer script).
Speaking of "failures", when installing vis CPAN, most
of the failures I experienced (aside form missing
packages, like the perl-devel RPM) happened during the
"make test" phase; it would fail many of the tests,
but when I went into the .cpan directory, and
installed manually (I usually went thru the whole
./configure, make, make install process, just to be
sure), it installed fine, and I never noticed any ill
effects from the tests is failed earlier.
<shrug> Not sure if that's useful or not; is there a
way to make CPAN *not* do the "make test"?? :-)
Just my $0.02.
Alan Murrell <silkbc@xxxxxxxxx>
______________________________________________________________________
Find, Connect, Date! http://personals.yahoo.ca
|