Ticket #885: myth-version.diff
File myth-version.diff, 5.0 KB (added by , 18 years ago) |
---|
-
configure
74 74 valgrind="no" 75 75 frontend="yes" 76 76 backend="no" 77 svn_revision=`( svnversion . 2>/dev/null ) || echo "Release 0.19.0"` 78 79 echo "Source revision: $svn_revision" 77 80 81 cat > libs/libmyth/vers.cpp <<EOF 82 #include "vers.h" 83 84 const char *myth_source_version = "$svn_revision"; 85 EOF 86 78 87 if test x"$CC" != x"" ; then 79 88 cc="$CC" 80 89 fi -
libs/libmyth/libmyth.pro
17 17 HEADERS += uilistbtntype.h generictree.h screensaver.h 18 18 HEADERS += managedlist.h DisplayRes.h volumebase.h audiooutputbase.h 19 19 HEADERS += dbsettings.h screensaver-null.h output.h visual.h 20 HEADERS += langsettings.h audiooutputnull.h 20 HEADERS += langsettings.h audiooutputnull.h vers.h 21 21 HEADERS += DisplayResScreen.h util-x11.h mythdeque.h qmdcodec.h 22 22 HEADERS += exitcodes.h virtualkeyboard.h mythobservable.h mythevent.h 23 23 … … 31 31 SOURCES += dbsettings.cpp screensaver.cpp screensaver-null.cpp output.cpp 32 32 SOURCES += langsettings.cpp mythdbcon.cpp audiooutputnull.cpp 33 33 SOURCES += DisplayResScreen.cpp util-x11.cpp qmdcodec.cpp 34 SOURCES += virtualkeyboard.cpp mythobservable.cpp 34 SOURCES += virtualkeyboard.cpp mythobservable.cpp vers.cpp 35 35 36 36 INCLUDEPATH += ../libmythsamplerate ../libmythsoundtouch ../.. 37 37 DEPENDPATH += ../libmythsamplerate ../libmythsoundtouch … … 58 58 inc.files += uilistbtntype.h generictree.h managedlist.h 59 59 inc.files += visual.h volumebase.h output.h langsettings.h qmdcodec.h 60 60 inc.files += exitcodes.h mythconfig.h mythconfig.mak virtualkeyboard.h 61 inc.files += mythevent.h mythobservable.h 61 inc.files += mythevent.h mythobservable.h vers.h 62 62 63 63 using_oss { 64 64 DEFINES += USING_OSS -
libs/libmyth/vers.h
1 #ifndef VERS_H_ 2 #define VERS_H_ 3 4 extern const char *myth_source_version; 5 6 #endif 7 -
programs/mythfrontend/main.cpp
47 47 #include "langsettings.h" 48 48 #include "livetvchain.h" 49 49 50 #include "vers.h" 51 50 52 #define NO_EXIT 0 51 53 #define QUIT 1 52 54 #define HALT 2 … … 840 842 } 841 843 else if (!strcmp(a.argv()[argpos],"--version")) 842 844 { 843 cout << MYTH_BINARY_VERSION << endl; 845 cout << "Source version: " << myth_source_version << endl; 846 cout << "API version: " << MYTH_BINARY_VERSION << endl; 844 847 #ifdef MYTH_BUILD_CONFIG 845 848 cout << "Options compiled in:" <<endl; 846 849 cout << MYTH_BUILD_CONFIG << endl; … … 987 990 return FRONTEND_EXIT_DB_OUTOFDATE; 988 991 } 989 992 990 VERBOSE(VB_ALL, QString("%1 version: %2 www.mythtv.org") 991 .arg(binname).arg(MYTH_BINARY_VERSION)); 993 VERBOSE(VB_ALL, QString("%1 version: %2, %3 www.mythtv.org") 994 .arg(binname).arg(myth_source_version) 995 .arg(MYTH_BINARY_VERSION)); 992 996 993 997 VERBOSE(VB_ALL, QString("Enabled verbose msgs: %1").arg(verboseString)); 994 998 -
programs/mythbackend/main.cpp
30 30 #include "libmyth/mythcontext.h" 31 31 #include "libmyth/mythdbcon.h" 32 32 #include "libmyth/exitcodes.h" 33 #include "libmyth/vers.h" 33 34 #include "libmythtv/programinfo.h" 34 35 #include "libmythtv/dbcheck.h" 35 36 #include "libmythtv/jobqueue.h" … … 323 324 } 324 325 else if (!strcmp(a.argv()[argpos],"--version")) 325 326 { 326 cout << MYTH_BINARY_VERSION << endl; 327 cout << "Source version: " << myth_source_version << endl; 328 cout << "API version: " << MYTH_BINARY_VERSION << endl; 327 329 #ifdef MYTH_BUILD_CONFIG 328 330 cout << "Options compiled in:" <<endl; 329 331 cout << MYTH_BUILD_CONFIG << endl; … … 517 519 else 518 520 jobqueue = new JobQueue(ismaster); 519 521 520 VERBOSE(VB_ALL, QString("%1 version: %2 www.mythtv.org") 521 .arg(binname).arg(MYTH_BINARY_VERSION)); 522 VERBOSE(VB_ALL, QString("%1 version: %2, %3 www.mythtv.org") 523 .arg(binname).arg(myth_source_version) 524 .arg(MYTH_BINARY_VERSION)); 522 525 523 526 VERBOSE(VB_ALL, QString("Enabled verbose msgs: %1").arg(verboseString)); 524 527 -
settings.pro
42 42 QMAKE_CFLAGS += $$ARCHFLAGS 43 43 QMAKE_CFLAGS_SHLIB = -DPIC -fPIC 44 44 QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE} 45 QMAKE_CFLAGS_DEBUG = $${QMAKE_CXXFLAGS_DEBUG} 45 46 QMAKE_CFLAGS += $$ECFLAGS 46 47 47 48 profile {