[hydra-commits] hydra/cmake.git branch "master" updated.

Commits to the Hydra project code repositories hydra-commits at lists.digium.com
Thu Aug 5 08:29:20 CDT 2010


branch "master" has been updated
       via  6f939932a3c35300208434795e42f5edae14e259 (commit)
      from  5d83a7cbd91ce4d278b40c676f71b9eba9c851e4 (commit)

Summary of changes:
 Hydra_v4.cmake |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 6f939932a3c35300208434795e42f5edae14e259
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Aug 5 10:44:59 2010 -0300

    Add make 'update' and 'make pull' support for git.

diff --git a/Hydra_v4.cmake b/Hydra_v4.cmake
index a14dfc7..fc1b08f 100644
--- a/Hydra_v4.cmake
+++ b/Hydra_v4.cmake
@@ -31,6 +31,9 @@ endif()
 
 if(UNIX AND EXISTS "${CMAKE_SOURCE_DIR}/.svn")
   add_custom_target(update COMMAND svn update WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" COMMENT "Updating checkout")
+elseif(UNIX AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
+  add_custom_target(update COMMAND git pull WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" COMMENT "Updating clone")
+  add_custom_target(pull COMMAND git pull WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" COMMENT "Updating clone")
 endif()
 
 macro(set_cache_var)

-----------------------------------------------------------------------


-- 
hydra/cmake.git




More information about the asterisk-scf-commits mailing list