Skip to content
Permalink
Browse files

show number of local git commits since last svn revision

git-svn-id: http://svn.osgeo.org/qgis/trunk@15066 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 22, 2011
1 parent 975b0fc commit 03bd563fa898e969e85fe0ef4ab8104f35d2a889
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} log -n1 --grep='git-svn-id' | sed -ne 's/^ *git-svn-id:.*@\([0-9]*\).*$\/\1/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' \)$$\( ${GIT} log --oneline $$\( ${GIT} log -n1 --grep='git-svn-id' --pretty=%H \).. | wc -l | sed -e 's/^/l+/' \)\\\" >${CMAKE_CURRENT_BINARY_DIR}/qgssvnversion.h
MAIN_DEPENDENCY ${GIT_MARKER}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

0 comments on commit 03bd563

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