Revision: 76476
http://sourceforge.net/p/brlcad/code/76476
Author: starseeker
Date: 2020-07-24 23:53:38 +0000 (Fri, 24 Jul 2020)
Log Message:
-----------
Now that we have a git version to try distcheck on... couple fixes to the repo
check.
Modified Paths:
--------------
brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in
Modified: brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in
===================================================================
--- brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in 2020-07-24
22:49:15 UTC (rev 76475)
+++ brlcad/trunk/misc/CMake/distcheck_repo_verify.cmake.in 2020-07-24
23:53:38 UTC (rev 76476)
@@ -148,8 +148,8 @@
# If we're using Git, check what it thinks the contents should be
if(EXISTS "@CMAKE_SOURCE_DIR@/.git")
- # Look for Subversion - if we don't have the command, we can't query the
- # repository even if it is present.
+ # Look for Git - if we don't have the command, we can't query the
+ # repository even if the repo information is present.
find_program(GIT_EXEC git)
if(GIT_EXEC)
@@ -158,7 +158,7 @@
# are met, we can collect information from Git
# By default, assume that nothing has been modified.
- set(SVN_TREE_MODIFIED 0)
+ set(GIT_TREE_MODIFIED 0)
# Get the file list
set(GIT_FILES "")
@@ -184,6 +184,9 @@
foreach(ITEM ${GIT_STDOUT})
list(APPEND GIT_STATUS ${ITEM})
endforeach(ITEM ${GIT_STDOUT})
+ # Apparently can get an empty list entry from GIT_STDOUT - remove any empty
+ # entries so CMake won't complain.
+ list(REMOVE_ITEM "" GIT_STATUS)
foreach(ITEM ${GIT_STATUS})
if(${ITEM} MATCHES "^\\?\\?")
string(REGEX REPLACE "^[?][?][\\t\\ ]*" "" item_path "${ITEM}")
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits