From cb1ef441b2a4d21cf67a59fe8e57613ba3552051 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 31 May 2019 20:05:14 +0200 Subject: Show git version information --- src/gitversion.cpp.in | 14 -------------- src/version.h | 25 ------------------------- 2 files changed, 39 deletions(-) delete mode 100644 src/gitversion.cpp.in delete mode 100644 src/version.h diff --git a/src/gitversion.cpp.in b/src/gitversion.cpp.in deleted file mode 100644 index cbb9b13..0000000 --- a/src/gitversion.cpp.in +++ /dev/null @@ -1,14 +0,0 @@ -#include - -char gitVersionString[]="@GIT_HEAD_SHA1@"; - -/* - On some systems git is not installed or - * installed on a place whete FindGit.cmake cannot find it - * - No git information is present (no .git directory) - * in those cases clear the gitVersionString (would have string GIT-NOTFOUND). - */ -void correctGitVersion(void) -{ - if (!strcmp(gitVersionString, "GIT-NOTFOUND")) gitVersionString[0] = '\0'; -} - diff --git a/src/version.h b/src/version.h deleted file mode 100644 index 09d1b4f..0000000 --- a/src/version.h +++ /dev/null @@ -1,25 +0,0 @@ -/****************************************************************************** - * - * - * - * Copyright (C) 1997-2015 by Dimitri van Heesch. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software - * for any purpose. It is provided "as is" without express or implied warranty. - * See the GNU General Public License for more details. - * - * Documents produced by Doxygen are derivative works derived from the - * input used in their production; they are not affected by this license. - * - */ - -#ifndef VERSION_H -#define VERSION_H - -extern char versionString[]; -extern char gitVersionString[]; - -void correctGitVersion(void); -#endif -- cgit v0.12