summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/inkscape-version.cmake
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-06-30 12:15:54 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-06-30 12:15:54 +0000
commite4ed7cef32c637af1466b6b41d77a246576ce9b7 (patch)
tree4b2b3a85a81cd1fcc995b04c7236040e65a203df /CMakeScripts/inkscape-version.cmake
parentHackfest: Show dropper color in cursor, while moving the mouse. (diff)
downloadinkscape-e4ed7cef32c637af1466b6b41d77a246576ce9b7.tar.gz
inkscape-e4ed7cef32c637af1466b6b41d77a246576ce9b7.zip
Fix revno
Diffstat (limited to '')
-rw-r--r--CMakeScripts/inkscape-version.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeScripts/inkscape-version.cmake b/CMakeScripts/inkscape-version.cmake
index 2e23925c4..65903c47b 100644
--- a/CMakeScripts/inkscape-version.cmake
+++ b/CMakeScripts/inkscape-version.cmake
@@ -11,14 +11,14 @@
set(INKSCAPE_REVISION "unknown")
set(INKSCAPE_CUSTOM "custom")
-if(EXISTS ${INKSCAPE_SOURCE_DIR}/.bzr/)
+if(EXISTS ${INKSCAPE_SOURCE_DIR}/.git/)
execute_process(COMMAND
- bzr revno --tree ${INKSCAPE_SOURCE_DIR}
+ git describe ${INKSCAPE_SOURCE_DIR}
OUTPUT_VARIABLE INKSCAPE_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND
- bzr status -S -V ${INKSCAPE_SOURCE_DIR}/src
+ git status -s ${INKSCAPE_SOURCE_DIR}/src
OUTPUT_VARIABLE INKSCAPE_SOURCE_MODIFIED
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT INKSCAPE_SOURCE_MODIFIED STREQUAL "")