From 33f6282224723c2f3163b120fb53b24ad94f8456 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Thu, 31 Jul 2014 08:44:12 +0400 Subject: [PATCH] release 1.0.0 --- README.md | 2 +- sources/src/CMakeLists.txt | 1 + sources/src/config.h.in | 10 ++-------- sources/src/inconfig.h.in | 35 +++++++++++++++++++++++++++++++++++ sources/src/reportabug.h | 1 - 5 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 sources/src/inconfig.h.in diff --git a/README.md b/README.md index b28e9f2..f8bfc58 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ This module requires your access token. Please visit [this page](https://github. curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"Some error occurs"}' https://api.github.com/repos/owner/repo/issues -This module requires `QtNetwork` module. To enable this module set up your token using `-DOWN_GITHUB_TOKEN=0` cmake flag. +This module requires `QtNetwork` module. To enable this module set up your token using `-DOWN_GITHUB_TOKEN=` cmake flag. ### Send issue over GitReport ### diff --git a/sources/src/CMakeLists.txt b/sources/src/CMakeLists.txt index 1ada67b..4a929f1 100644 --- a/sources/src/CMakeLists.txt +++ b/sources/src/CMakeLists.txt @@ -12,6 +12,7 @@ if (ENABLE_GITREPORT) endif () configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) +configure_file (${CMAKE_CURRENT_SOURCE_DIR}/inconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/inconfig.h) # include_path include_directories (${CMAKE_CURRENT_BINARY_DIR}/../ diff --git a/sources/src/config.h.in b/sources/src/config.h.in index 00c7314..2d6e7f3 100644 --- a/sources/src/config.h.in +++ b/sources/src/config.h.in @@ -18,6 +18,8 @@ #ifndef CONFIG_H #define CONFIG_H +#include + /* * Main configuration @@ -35,10 +37,6 @@ #define TAG_MILESTONE "" // comma separated #define TAG_LABELS "auto,bug" -// modules. Please use -DENABLE_GITHUB= and -DENABLE_GITREPORT= cmake flags -// DO NOT EDIT THEM! -#cmakedefine ENABLE_GITHUB -#cmakedefine ENABLE_GITREPORT /* * Configuration of creating an issue using GitHub API @@ -59,10 +57,6 @@ * Please keep in mind that passing the token in the clear, * you may discredit your account. */ -// please use -DOWN_GITHUB_TOKEN= cmake flag to define it -// if it is empty, it will be ignored -// DO NOT EDIT IT! -#cmakedefine OWN_GITHUB_TOKEN "@OWN_GITHUB_TOKEN@" /* * Configuration of creating an issue using GitReports diff --git a/sources/src/inconfig.h.in b/sources/src/inconfig.h.in new file mode 100644 index 0000000..f6acb92 --- /dev/null +++ b/sources/src/inconfig.h.in @@ -0,0 +1,35 @@ +/*************************************************************************** + * This file is part of reportabug * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 3.0 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * + * Lesser General Public License for more details. * + * * + * You should have received a copy of the GNU Lesser General Public * + * License along with this library. * + ***************************************************************************/ + +#ifndef INCONFIG_H +#define INCONFIG_H + + +// DO NOT EDIT THIS FILE + +/* + * Main configuration + */ +// modules. Please use -DENABLE_GITHUB= and -DENABLE_GITREPORT= cmake flags +#cmakedefine ENABLE_GITHUB +#cmakedefine ENABLE_GITREPORT +// please use -DOWN_GITHUB_TOKEN= cmake flag to define it +// if it is empty, it will be ignored +#cmakedefine OWN_GITHUB_TOKEN "@OWN_GITHUB_TOKEN@" + + +#endif /* INCONFIG_H */ diff --git a/sources/src/reportabug.h b/sources/src/reportabug.h index bb5905e..855ae20 100644 --- a/sources/src/reportabug.h +++ b/sources/src/reportabug.h @@ -28,7 +28,6 @@ #include #include -#include "config.h" class GithubModule; class GitreportModule;