summaryrefslogtreecommitdiff
path: root/CMake/getsvn.cmake
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /CMake/getsvn.cmake
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'CMake/getsvn.cmake')
-rw-r--r--CMake/getsvn.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMake/getsvn.cmake b/CMake/getsvn.cmake
index 92b5b415..d6af3312 100644
--- a/CMake/getsvn.cmake
+++ b/CMake/getsvn.cmake
@@ -65,7 +65,7 @@ elseif (EXISTS "${SOURCE_DIR}/.git")
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}-dirty")
- execute_process (COMMAND ${GIT_EXECUTABLE} --git-dir=${SOURCE_DIR}/.git --work-tree=${SOURCE_DIR} status
+ execute_process (COMMAND ${GIT_EXECUTABLE} -C ${SOURCE_DIR} status
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
else ()
@@ -74,7 +74,13 @@ elseif (EXISTS "${SOURCE_DIR}/.git")
message (STATUS "refspec: ${GIT_REFSPEC} - SHA1: ${SCS_VERSION}")
endif ()
else()
- message (STATUS "No SCS found")
+ if (SOURCE_REVISION)
+ string (SUBSTRING "${SOURCE_REVISION}" 0 6 SCS_VERSION)
+ set (SCS_VERSION_STR "${SCS_VERSION}")
+ message (STATUS "Using archived source revision ${SCS_VERSION}")
+ else ()
+ message (STATUS "No SCS found")
+ endif ()
endif ()
file (APPEND ${__scs_header_file} "#define SCS_VERSION ${SCS_VERSION}\n")
file (APPEND ${__scs_header_file} "#define SCS_VERSION_STR \"${SCS_VERSION_STR}\"\n")