[PATCH] qmake: use a dedicated build script to generate ssrf-version.h

Lubomir I. Ivanov neolit123 at gmail.com
Fri Feb 13 14:08:49 PST 2015


On 13 February 2015 at 04:07, Thiago Macieira <thiago at macieira.org> wrote:
> On Thursday 12 February 2015 23:11:02 Lubomir I. Ivanov wrote:
>> git --version 2> /dev/null
>>
>> /dev/null is supported in cmd as well.
>>
>> if the 'git' command fails, HAS_GIT should contain no value since
>> stderr is piped to the null device.
>
> You could do this:
>
> if gitpwd=`git rev-parse --show-toplevel 2>/dev/null`; then
>         FULL_VER=`sh "$gitpwd/scripts/get-version" linux`
> else
>         FULL_VER=`cat .gitversion 2> /dev/null || echo $VERSION`
> fi
>
> That checks at the same time for git's presence and that we're in a git
> repository.
>

it works!

new patch attached.
Dirk, i think this is good to go at this point.
i also need to send the other one after that (version.c / .h).

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-qmake-use-a-dedicated-build-script-to-generate-ssrf-.patch
Type: application/octet-stream
Size: 6231 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150214/901eeeb8/attachment.obj>


More information about the subsurface mailing list