Re: Any qmake experts out there?

2015-01-30 Thread Lubomir I. Ivanov
On 30 January 2015 at 03:07, Lubomir I. Ivanov wrote: > here is my progress in a single patch if someone is interested. > > i'm CCing Thiago, because maybe he can help with a qmake issue. > > basically i have the same setup that this patch applies in a test project: > - the version_h rule is gener

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
here is my progress in a single patch if someone is interested. i'm CCing Thiago, because maybe he can help with a qmake issue. basically i have the same setup that this patch applies in a test project: - the version_h rule is generated in a .pro (.pri) file - the rule simply calls a script that

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
On 29 January 2015 at 19:06, Henrik Brautaset Aronsen wrote: > On 29 Jan 2015, at 17:21, Lubomir I. Ivanov wrote: >> >> - version.h does not exists even if tarballed (if so fill it it a >> hardcoded version) > > Just to be precise: It's ssrf-version.h, not version.h, right? > it's just a test m

Re: Any qmake experts out there?

2015-01-29 Thread Henrik Brautaset Aronsen
On 29 Jan 2015, at 17:21, Lubomir I. Ivanov wrote: > > - version.h does not exists even if tarballed (if so fill it it a > hardcoded version) Just to be precise: It's ssrf-version.h, not version.h, right? Henrik ___ subsurface mailing list subsurface

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
On 29 January 2015 at 16:20, Jef Driesen wrote: > FORCE: > $(top_srcdir)/revision: FORCE > @if (test -d $(top_srcdir)/.git && cd $(top_srcdir) \ > && git rev-parse --verify HEAD) > revision-t 2>/dev/null \ > && ! cmp -s revision-t $@; then \ > mv -f revisio

Re: Any qmake experts out there?

2015-01-29 Thread Jef Driesen
On 2015-01-29 14:38, Thiago Macieira wrote: On Thursday 29 January 2015 15:30:43 Lubomir I. Ivanov wrote: this is what i would do: - all: main.exe .PHONY: persist version.h: persist cat $@ 2> /dev/null || git rev-parse HEAD > $@ git rev-parse HEAD > $@.tmp git diff

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
On 29 January 2015 at 15:30, Lubomir I. Ivanov wrote: > On 29 January 2015 at 04:59, Thiago Macieira wrote: >> On Wednesday 28 January 2015 11:04:21 Linus Torvalds wrote: >>> The proper way to get the git version is to just do >>> >>> # get raw SHA1 >>> git rev-parse HEAD >>> >>> #

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
On 29 January 2015 at 15:38, Thiago Macieira wrote: > On Thursday 29 January 2015 15:30:43 Lubomir I. Ivanov wrote: >> this is what i would do: >> - >> >> all: main.exe >> >> .PHONY: persist >> >> version.h: persist >> cat $@ 2> /dev/null || git rev-parse HEAD > $@ >> git r

Re: Any qmake experts out there?

2015-01-29 Thread Thiago Macieira
On Thursday 29 January 2015 15:30:43 Lubomir I. Ivanov wrote: > this is what i would do: > - > > all: main.exe > > .PHONY: persist > > version.h: persist > cat $@ 2> /dev/null || git rev-parse HEAD > $@ > git rev-parse HEAD > $@.tmp > git diff --quiet $@ $@.tmp || cp

Re: Any qmake experts out there?

2015-01-29 Thread Lubomir I. Ivanov
On 29 January 2015 at 04:59, Thiago Macieira wrote: > On Wednesday 28 January 2015 11:04:21 Linus Torvalds wrote: >> The proper way to get the git version is to just do >> >> # get raw SHA1 >> git rev-parse HEAD >> >> # get "description" of it >> git describe --tags --abbrev=12

Re: Any qmake experts out there?

2015-01-29 Thread Martin Gysel
Am 29.01.2015 10:06, schrieb Anton Lundin: > On 29 January, 2015 - Thiago Macieira wrote: > >> On Wednesday 28 January 2015 11:04:21 Linus Torvalds wrote: >>> The proper way to get the git version is to just do >>> >>> # get raw SHA1 >>> git rev-parse HEAD >>> >>> # get "description

Re: Any qmake experts out there?

2015-01-29 Thread Anton Lundin
On 29 January, 2015 - Thiago Macieira wrote: > On Wednesday 28 January 2015 11:04:21 Linus Torvalds wrote: > > The proper way to get the git version is to just do > > > > # get raw SHA1 > > git rev-parse HEAD > > > > # get "description" of it > > git describe --tags --abbrev=

Re: Any qmake experts out there?

2015-01-28 Thread Thiago Macieira
On Wednesday 28 January 2015 11:04:21 Linus Torvalds wrote: > The proper way to get the git version is to just do > > # get raw SHA1 > git rev-parse HEAD > > # get "description" of it > git describe --tags --abbrev=12 > > but actually accessing the .git/HEAD file directly is

Any qmake experts out there?

2015-01-28 Thread Linus Torvalds
The subsurface version generation code is wrong, and I don't know enough about qmake to fix it. Isubsurface-gen-version.pridoes this: exists(.git/HEAD): { win32: SET_GIT_DIR = set GIT_DIR else: SET_GIT_DIR = GIT_DIR GIT_HEAD = .git/HEAD VERSION_SCRIPT = $$PWD/sc