[Kmymoney-devel] Problems transitioning MacPorts' port kmymoney4-devel to git...
Cristian Oneț
onet.cristian at gmail.com
Wed Nov 16 22:08:34 UTC 2011
On Wednesday 16 November 2011 20:10:08 Marko Käning wrote:
> As a temporary solution to the problem I simply use this patch:
> ---
> --- kmymoney/CMakeLists.txt 2011-11-16 19:34:20.000000000 +0100
> +++ kmymoney/CMakeLists.txt.new 2011-11-16 19:36:03.000000000 +0100
> @@ -40,21 +40,7 @@
> SET(ENV{LANG} ${LANG})
> ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn)
>
> -# Determine the GIT reference (if we're based on GIT)
> -IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
> - # make sure we don't use translated messages here
> - SET(LANG $ENV{LANG})
> - SET(ENV{LANG} "C")
> - EXECUTE_PROCESS(COMMAND git log -1 COMMAND head -n 1 WORKING_DIRECTORY
> ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE BRANCH) - # extract branch
> name
> - STRING(REGEX MATCH "commit ([^$]+)" BRANCH "${BRANCH}")
> - SET(BRANCH ${CMAKE_MATCH_1})
> - # and use the first 10 chars of the commit id
> - STRING(SUBSTRING ${BRANCH} 0 10 BRANCH)
> - SET(VERSION_SUFFIX "-${BRANCH}")
> - # switch back to the original language setting
> - SET(ENV{LANG} ${LANG})
> -ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
> +SET(VERSION_SUFFIX "-GIT")
>
> ######################### General Requirements ##########################
> ---
> which eliminates the whole code involving interaction with git.
This is no longer necessary since I've enabled this check only for Linux
because it did not work on Windows either.
--
Regards,
Cristian Oneț
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20111117/826a3c18/attachment.sig>
More information about the KMyMoney-devel
mailing list