On 13 February 2015 at 04:07, Thiago Macieira <[email protected]> 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
--

Attachment: 0001-qmake-use-a-dedicated-build-script-to-generate-ssrf-.patch
Description: Binary data

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to