diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-28 20:12:00 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-28 20:12:00 +0000 |
| commit | fb42d9e019e0b21c4d98cae0e8268d63087a2034 (patch) | |
| tree | 3fbe9ce02bcbdbb4ad9c8dcdac4290ba8d6894d5 /CMakeScripts | |
| parent | Add missing icons in Tango theme and some LPE icons improvements (diff) | |
| download | inkscape-fb42d9e019e0b21c4d98cae0e8268d63087a2034.tar.gz inkscape-fb42d9e019e0b21c4d98cae0e8268d63087a2034.zip | |
CMake: Fix "unknown" in version string of ppa builds
For now we extract the exact version string of the ppa build
(which differs from our usual version string).
This should be matched to other builds, though, if somebody can
figure it out.
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/inkscape-version.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeScripts/inkscape-version.cmake b/CMakeScripts/inkscape-version.cmake index 163490764..119260988 100644 --- a/CMakeScripts/inkscape-version.cmake +++ b/CMakeScripts/inkscape-version.cmake @@ -30,6 +30,14 @@ if(EXISTS ${INKSCAPE_SOURCE_DIR}/.git) if(NOT INKSCAPE_SOURCE_MODIFIED STREQUAL "") set(INKSCAPE_REVISION "${INKSCAPE_REVISION}, custom") endif() +elseif(EXISTS ${INKSCAPE_SOURCE_DIR}/debian/git-build-recipe.manifest) + # workaround for debian packaging in ppa (where we have no repo) + # TODO: figure out how to match this to standard build environments + execute_process(COMMAND sed -n 's/.*deb-version\\s*//p' git-build-recipe.manifest + WORKING_DIRECTORY ${INKSCAPE_SOURCE_DIR}/debian + OUTPUT_VARIABLE DEB_VERSION + OUTPUT_STRIP_TRAILING_WHITESPACE) + set(INKSCAPE_REVISION "${DEB_VERSION}") endif() if(NOT "${INKSCAPE_BINARY_DIR}" STREQUAL "") |
