Skip to content

Commit

Permalink
Remove GIT_COMMIT_HASH entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed May 23, 2019
1 parent 5e6fed5 commit 7699310
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 69 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ BUILT_SOURCES =

EXTRA_DIST = acsite.m4 .editorconfig \
Version.txt CMakeLists.txt \
cmake/GetGitRevision.cmake \
cmake/cmake_uninstall.cmake.in \
cmake/geos-config.cmake \
README.md
Expand Down
15 changes: 0 additions & 15 deletions capi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@
# See the COPYING file for more information.
################################################################################

include(GetGitRevision)

get_git_revision(
HASH_LENGTH 7
HASH GIT_COMMIT_HASH
DIRTY GEOS_GIT_IS_DIRTY)

if (${GEOS_GIT_IS_DIRTY})
set(GIT_COMMIT_HASH "${GIT_COMMIT_HASH} (dirty)")
endif()

message(STATUS "GEOS: GEOS_REVISION=${GIT_COMMIT_HASH}")

################################################################################

file(GLOB_RECURSE _headers ${CMAKE_CURRENT_LIST_DIR}/*.cpp CONFIGURE_DEPEND)
target_sources(geos_c PRIVATE ${_headers})
unset(_headers)
Expand Down
4 changes: 0 additions & 4 deletions capi/geos_c.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ extern "C" {
#define GEOS_JTS_PORT "@JTS_PORT@"
#endif

#ifndef GEOS_REVISION
#define GEOS_REVISION "@GIT_COMMIT_HASH@"
#endif

#define GEOS_CAPI_VERSION_MAJOR @CAPI_VERSION_MAJOR@
#define GEOS_CAPI_VERSION_MINOR @CAPI_VERSION_MINOR@
#define GEOS_CAPI_VERSION_PATCH @CAPI_VERSION_PATCH@
Expand Down
2 changes: 1 addition & 1 deletion capi/geos_ts_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3546,7 +3546,7 @@ extern "C" {
const char* GEOSversion()
{
static char version[256];
sprintf(version, "%s " GEOS_REVISION, GEOS_CAPI_VERSION);
sprintf(version, "%s ", GEOS_CAPI_VERSION);
return version;
}

Expand Down
40 changes: 0 additions & 40 deletions cmake/GetGitRevision.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ dnl -- JTS_PORT: the version of JTS this release is bound to
dnl JTS_PORT=1.13.0
JTS_PORT=`cat $VERTXT | awk -F= '/^JTS_PORT/ {print $2}'`

AC_MSG_CHECKING([git revision hash])
if [ test -d $srcdir/.git ]; then
GIT_COMMIT_HASH=`git -C "$srcdir" log -1 --format=%h`
else
GIT_COMMIT_HASH=
fi
AC_MSG_RESULT([$GIT_COMMIT_HASH])

dnl Hush warnings
AC_DEFINE(USE_UNSTABLE_GEOS_CPP_API, [1], [We know])
Expand Down Expand Up @@ -394,7 +387,6 @@ AC_SUBST(VERSION_MINOR)
AC_SUBST(VERSION_PATCH)
AC_SUBST(VERSION_RELEASE)
AC_SUBST(JTS_PORT)
AC_SUBST(GIT_COMMIT_HASH)
AC_SUBST(CAPI_VERSION)
AC_SUBST(CAPI_VERSION_MAJOR)
AC_SUBST(CAPI_VERSION_MINOR)
Expand Down

0 comments on commit 7699310

Please sign in to comment.