Living on the Edge

From XMLTV
Revision as of 06:50, 4 September 2010 by Dekarl (Talk | contribs) (add a .cvsrc)

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/

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