[Pkg-owncloud-commits] [owncloud-client] 172/498: Reduce the amount of rebuild needed after a git commit
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit a4f519eaeb7b5bf652c2308fc02817d92585e056
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date: Tue Jun 16 16:25:18 2015 +0200
Reduce the amount of rebuild needed after a git commit
Since GIT_SHA1 would need to be updated in config.h, all files
including it would be rebuilt by make.
Reduce the number of files to rebuild by moving this variable
to version.h instead.
---
config.h.in | 1 -
src/cmd/cmd.cpp | 1 -
src/gui/updater/ocupdater.cpp | 1 -
src/libsync/version.h.in | 2 ++
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/config.h.in b/config.h.in
index 601dc6b..1f2e145 100644
--- a/config.h.in
+++ b/config.h.in
@@ -7,7 +7,6 @@
#cmakedefine CRASHREPORTER_EXECUTABLE "@CRASHREPORTER_EXECUTABLE@"
-#cmakedefine GIT_SHA1 "@GIT_SHA1@"
#cmakedefine APPLICATION_DOMAIN @APPLICATION_DOMAIN@
#cmakedefine THEME_CLASS @THEME_CLASS@
#cmakedefine THEME_INCLUDE @THEME_INCLUDE@
diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp
index 0d6d578..d24418d 100644
--- a/src/cmd/cmd.cpp
+++ b/src/cmd/cmd.cpp
@@ -34,7 +34,6 @@
#include "theme.h"
#include "netrcparser.h"
-#include "version.h"
#include "config.h"
#ifdef Q_OS_WIN32
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp
index 04c2ef5..d201fcf 100644
--- a/src/gui/updater/ocupdater.cpp
+++ b/src/gui/updater/ocupdater.cpp
@@ -13,7 +13,6 @@
*/
#include "theme.h"
-#include "version.h"
#include "configfile.h"
#include "utility.h"
#include "accessmanager.h"
diff --git a/src/libsync/version.h.in b/src/libsync/version.h.in
index 29740f1..c05c224 100644
--- a/src/libsync/version.h.in
+++ b/src/libsync/version.h.in
@@ -15,6 +15,8 @@
#ifndef VERSION_H
#define VERSION_H
+#cmakedefine GIT_SHA1 "@GIT_SHA1@"
+
#define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
#define MIRALL_TOSTRING(s) #s
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list