[mythtv-commits] Ticket #885: Add source revision number to version information
MythTV
mythtv at cvs.mythtv.org
Sun Jan 15 10:07:49 UTC 2006
#885: Add source revision number to version information
------------------------------------------------+---------------------------
Reporter: willu.mailingLists at cse.unsw.edu.au | Owner: ijr
Type: patch | Status: reopened
Priority: minor | Milestone: 0.19
Component: mythtv | Version:
Severity: low | Resolution:
------------------------------------------------+---------------------------
Comment (by nigel):
OK, I have something simple working:
{{{
% svn diff >mythtv-version.diff
% mythfrontend --version
Library API version: 0.19.20051208-1
Source code version: 8614M
Options compiled in:
release using_dvdnav using_frontend
}}}
[[BR]]
To do it the other (version.cpp) way, uncomment the relevant lines in
version.pro, and do this in main.cpp:
{{{
else if (!strcmp(a.argv()[argpos],"--version"))
{
extern const char *myth_source_version;
cout << "Library API version: " << MYTH_BINARY_VERSION <<
endl;
cout << "Source code version: " << myth_source_version <<
endl;
#ifdef MYTH_BUILD_CONFIG
}}}
[[BR]]
Anyway, I think this is a good idea, but I will wait for feedback from
others before commiting
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/885>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list