Ticket #885: myth-version.2.diff
File myth-version.2.diff, 4.7 KB (added by , 20 years ago) |
---|
-
libs/libmyth/libmyth.pro
9 9 10 10 QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2) 11 11 12 system(touch vers.cpp) 13 14 vers.target = vers.cpp 15 vers.commands = echo "const char *myth_source_version = \"`( svnversion ../.. 2>/dev/null ) || echo "Release $${LIBVERSION}"`\";" > vers.cpp 16 vers.depends = FORCE 17 18 QMAKE_EXTRA_UNIX_TARGETS += vers 19 12 20 # Input 13 21 HEADERS += dialogbox.h lcddevice.h mythcontext.h mythwidgets.h oldsettings.h 14 22 HEADERS += remotefile.h settings.h themedmenu.h util.h mythwizard.h … … 17 25 HEADERS += uilistbtntype.h generictree.h screensaver.h 18 26 HEADERS += managedlist.h DisplayRes.h volumebase.h audiooutputbase.h 19 27 HEADERS += dbsettings.h screensaver-null.h output.h visual.h 20 HEADERS += langsettings.h audiooutputnull.h 28 HEADERS += langsettings.h audiooutputnull.h vers.h 21 29 HEADERS += DisplayResScreen.h util-x11.h mythdeque.h qmdcodec.h 22 30 HEADERS += exitcodes.h virtualkeyboard.h mythobservable.h mythevent.h 23 31 … … 31 39 SOURCES += dbsettings.cpp screensaver.cpp screensaver-null.cpp output.cpp 32 40 SOURCES += langsettings.cpp mythdbcon.cpp audiooutputnull.cpp 33 41 SOURCES += DisplayResScreen.cpp util-x11.cpp qmdcodec.cpp 34 SOURCES += virtualkeyboard.cpp mythobservable.cpp 42 SOURCES += virtualkeyboard.cpp mythobservable.cpp vers.cpp 35 43 36 44 INCLUDEPATH += ../libmythsamplerate ../libmythsoundtouch ../.. 37 45 DEPENDPATH += ../libmythsamplerate ../libmythsoundtouch … … 58 66 inc.files += uilistbtntype.h generictree.h managedlist.h 59 67 inc.files += visual.h volumebase.h output.h langsettings.h qmdcodec.h 60 68 inc.files += exitcodes.h mythconfig.h mythconfig.mak virtualkeyboard.h 61 inc.files += mythevent.h mythobservable.h 69 inc.files += mythevent.h mythobservable.h vers.h 62 70 63 71 using_oss { 64 72 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