Skip to content
Permalink
Browse files

retrieve svn revision from git log instead of git svn info

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15065 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 22, 2011
1 parent a2650df commit e353bb4a6851b60265d15a0af605b2ded58405ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 CMakeLists.txt
@@ -461,7 +461,7 @@ ELSE (SVN_MARKER)
IF(GIT)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qgssvnversion.h
COMMAND echo \\\#define QGSSVNVERSION \\\"`${GIT} svn info | sed -ne "s/Revision: //p"`\\\" >${CMAKE_CURRENT_BINARY_DIR}/qgssvnversion.h
COMMAND echo \\\#define QGSSVNVERSION \\\"`${GIT} log -n1 --grep='git-svn-id' | sed -ne 's/^ *git-svn-id:.*@\([0-9]*\).*$\/\1/p'`\" >${CMAKE_CURRENT_BINARY_DIR}/qgssvnversion.h
MAIN_DEPENDENCY ${GIT_MARKER}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

0 comments on commit e353bb4

Please sign in to comment.
You can’t perform that action at this time.