Living on the Edge

From XMLTV
Revision as of 20:24, 28 October 2010 by Dekarl (Talk | contribs) (Build from Source: add a way to find a good PREFIX)

Jump to: navigation, search

With rapidly changing grabbers you might want to run the development version of xmltv on your system. Here's how to do this on Unix/Linux. The instructions work on Windows / Mac OS X etc. if you have a suitable development environment installed. (e.g. Mingw on Windows)

Setup CVS to sane defaults

Add a .cvsrc file to your home directory ($HOME/.cvsrc) to set some sane defaults for CVS to not clobber the disk and screen with useless stuff.

cvs -q
diff -u
update -Pd
checkout -P

Get the Source

Get the latest version of the source code, preferably by checking it out from the central repository (it's easier to stay up to date that way)

% cvs -z3 -d:pserver:anonymous@xmltv.cvs.sourceforge.net:/cvsroot/xmltv co -P xmltv

Build from Source

As seen at http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/README

Basic installation instructions (Linux/Unix):

% perl Makefile.PL
% make
% make test
% make install

To install in a custom directory, replace the first line with something like

% perl Makefile.PL PREFIX=/wherever/

If you want to write over whatever your package manager has installed for you set the PREFIX to whatever has been used in the package, to find out use which:

% which tv_cat
/usr/bin/tv_cat

Use whatever is in front of /bin/tv_cat as PREFIX, in this case that would be

% perl Makefile.PL PREFIX=/usr

Test your Grabber

If you just updated or change the grabber you can test it by running the following commands in the source tree.

% make
% grab/test_grabbers --only uk_rt

Prepare a Patch

If you changed the source code of the grabber you can sum up the changes to submit back.

% cvs -q diff > ~/a-nice-name-summarizing-your-changes.patch