[mythtv-commits] Ticket #885: Add source revision number to version
information
MythTV
mythtv at cvs.mythtv.org
Wed Dec 28 05:33:50 EST 2005
#885: Add source revision number to version information
------------------------------------------------+---------------------------
Reporter: willu.mailingLists at cse.unsw.edu.au | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: 0.19
Component: mythtv | Version:
Severity: low |
------------------------------------------------+---------------------------
The attached patch adds the current subversion revision to the data
printed out on startup for mythfrontend and mythbackend.
A call to svnversion is added to the configure script. Configure
generates a file, libs/libmyth/vers.cpp, which adds a new global string in
libmyth containing the revision information of the source. If there are
no .svn directories then you get a default string with the release number.
I didn't use a header file as I didn't want too much to have to be
recompiled every time the revision changes (which is frequently to say the
least). As written, one file will have to be recompiled, libraries and
programs will only need to be re-linked.
As well as the attached patch, you probably also want to add
libs/libmyth/vers.cpp to the svn:ignores property of libs/libmyth/.
This patch might be changed by putting the generation of vers.cpp into the
Makefile rather than having it happen at compile time. This would require
qmake wizardry, and I didn't think it was worth it.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/885>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list