[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:12:44 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=5ebb1a1

The following commit has been merged in the master branch:
commit 5ebb1a19f60ce821144e683c40ccdd090df1d5f5
Author: David Edmundson <david at davidedmundson.co.uk>
Date:   Mon Mar 4 12:29:22 2013 +0000

    Move version information into CMakeLists.txt
    
    This will make releases a bit easier
    
    REVIEW: 109209
---
 CMakeLists.txt | 3 +++
 main.cpp       | 3 ++-
 version.h.in   | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ba261c..5802d32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,7 @@
 project (ktp-contactlist)
 
+set(KTP_CONTACT_LIST_VERSION "0.5.3")
+
 set (CMAKE_MODULE_PATH
      "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
      ${CMAKE_MODULE_PATH}
@@ -51,6 +53,7 @@ set (ktp_contactlist_SRCS
      tooltips/contacttooltip.cpp
 )
 
+configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
 
 kde4_add_ui_files (ktp_contactlist_SRCS
                    main-widget.ui
diff --git a/main.cpp b/main.cpp
index d7d0feb..65801df 100644
--- a/main.cpp
+++ b/main.cpp
@@ -30,10 +30,11 @@
 #include <TelepathyQt/Debug>
 
 #include "contact-list-application.h"
+#include "version.h"
 
 int main(int argc, char *argv[])
 {
-    KAboutData aboutData("ktp-contactlist", 0, ki18n("KDE Telepathy Contact List"), "0.5.3",
+    KAboutData aboutData("ktp-contactlist", 0, ki18n("KDE Telepathy Contact List"), KTP_CONTACT_LIST_VERSION,
                          ki18n("KDE Telepathy Contact List"), KAboutData::License_GPL,
                          ki18n("(C) 2011, Martin Klapetek"));
 
diff --git a/version.h.in b/version.h.in
new file mode 100644
index 0000000..4289add
--- /dev/null
+++ b/version.h.in
@@ -0,0 +1 @@
+#define KTP_CONTACT_LIST_VERSION "@KTP_CONTACT_LIST_VERSION@"

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list