[mythtv] [PATCH] Add information from configure to the --version
string
Allan Stirling
Dibblahmythml0015 at pendor.org
Tue Jun 21 20:20:56 UTC 2005
This patch to current CVS (I haven't noticed any commits here recently,
anyway) adds the items listed in CCONFIG to the output of --version of
mythfrontend and mythbackend. The output looks like:
mythfrontend --version
0.18.20050523-1
Options compiled in:
linux backend release using_oss using_alsa using_ivtv using_lirc
using_joystick_menu using_x11 using_xv using_xrandr
I'm attaching the gzipped version of the patch as well, since
Thunderbird is being tempermental about retaining formatting inside
attachments.
Cheers,
Allan.
-------------- next part --------------
Index: configure
===================================================================
RCS file: /var/lib/mythcvs/mythtv/configure,v
retrieving revision 1.69
diff -u -p -r1.69 configure
--- configure 2 Jun 2005 22:41:10 -0000 1.69
+++ configure 21 Jun 2005 20:14:14 -0000
@@ -2498,6 +2498,7 @@ fi
if test x"$CCONFIG" != x"" ; then
echo "CCONFIG=$CCONFIG" >> $MYTH_CONFIG_MAK
+ echo "#define MYTH_BUILD_CONFIG \"$CCONFIG\"" >>$TMPH
fi
if test x"$CONFIG_DEFINES" != x"" ; then
Index: programs/mythfrontend/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/main.cpp,v
retrieving revision 1.194
diff -u -p -r1.194 main.cpp
--- programs/mythfrontend/main.cpp 14 May 2005 16:20:46 -0000 1.194
+++ programs/mythfrontend/main.cpp 21 Jun 2005 20:14:18 -0000
@@ -10,6 +10,8 @@
#include <fcntl.h>
#include <signal.h>
+#include "../../config.h"
+
#include <iostream>
using namespace std;
@@ -887,6 +889,9 @@ int main(int argc, char **argv)
else if (!strcmp(a.argv()[argpos],"--version"))
{
cout << MYTH_BINARY_VERSION << endl;
+ cout << "Options compiled in:" <<endl;
+ cout << MYTH_BUILD_CONFIG << endl;
+
return FRONTEND_EXIT_OK;
}
else if (!strcmp(a.argv()[argpos],"-geometry") ||
Index: programs/mythbackend/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/main.cpp,v
retrieving revision 1.89
diff -u -p -r1.89 main.cpp
--- programs/mythbackend/main.cpp 17 May 2005 02:58:59 -0000 1.89
+++ programs/mythbackend/main.cpp 21 Jun 2005 20:14:21 -0000
@@ -360,6 +360,8 @@ int main(int argc, char **argv)
else if (!strcmp(a.argv()[argpos],"--version"))
{
cout << MYTH_BINARY_VERSION << endl;
+ cout << "Options compiled in:" <<endl;
+ cout << MYTH_BUILD_CONFIG << endl;
return BACKEND_EXIT_OK;
}
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moreversion.patch.gz
Type: application/x-gzip
Size: 694 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050621/9903cb0e/moreversion.patch.bin
More information about the mythtv-dev
mailing list