summaryrefslogtreecommitdiff
path: root/CMake/getsvn.cmake
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
committertony mancill <tmancill@debian.org>2023-09-03 19:46:43 -0700
commit393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch)
tree6a6e8a56ace360795e1cf1a310d5652bb23f1386 /CMake/getsvn.cmake
parent6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff)
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
Diffstat (limited to 'CMake/getsvn.cmake')
-rwxr-xr-xCMake/getsvn.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMake/getsvn.cmake b/CMake/getsvn.cmake
index 158b2e47..144d2ae1 100755
--- a/CMake/getsvn.cmake
+++ b/CMake/getsvn.cmake
@@ -20,7 +20,7 @@ if (EXISTS "${SOURCE_DIR}/.svn")
if (__svn_changes)
message (STATUS "Source tree based on revision ${SCS_VERSION} appears to have local changes")
file (APPEND ${__scs_header_file} "#define SCS_VERSION_IS_DIRTY 1\n")
- set (SCS_VERSION_STR "${SCS_VERSION}")
+ set (SCS_VERSION_STR "${SCS_VERSION}-dirty")
foreach (__svn_change ${__svn_changes})
message (STATUS "${__svn_change}")
endforeach (__svn_change ${__svn_changes})
@@ -48,7 +48,7 @@ elseif (EXISTS "${SOURCE_DIR}/.git")
if ((NOT ${__git_svn_status} EQUAL 0) OR __svn_changes)
message (STATUS "Source tree based on revision ${MY_WC_LAST_CHANGED_REV} appears to have local changes")
file (APPEND ${__scs_header_file} "#define SCS_VERSION_IS_DIRTY 1\n")
- set (SCS_VERSION_STR "${SCS_VERSION}")
+ set (SCS_VERSION_STR "${SCS_VERSION}-dirty")
else ()
set (SCS_VERSION_STR "${SCS_VERSION}")
endif ()
@@ -64,7 +64,7 @@ elseif (EXISTS "${SOURCE_DIR}/.git")
if ("${GIT_SANITARY}" STREQUAL "DIRTY")
message (STATUS "Source tree based on revision ${GIT_REFSPEC} ${SCS_VERSION} appears to have local changes")
file (APPEND ${__scs_header_file} "#define SCS_VERSION_IS_DIRTY 1\n")
- set (SCS_VERSION_STR "${SCS_VERSION}")
+ set (SCS_VERSION_STR "${SCS_VERSION}-dirty")
execute_process (COMMAND ${GIT_EXECUTABLE} --git-dir=${SOURCE_DIR}/.git --work-tree=${SOURCE_DIR} status
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)