Build .qm files from .ts

Dirk Hohndel dirk at hohndel.org
Fri Oct 11 07:28:55 UTC 2013


On Fri, 2013-10-11 at 17:23 +0300, Lubomir I. Ivanov wrote:
> On 11 October 2013 16:55, Robert Helling <helling at lmu.de> wrote:
> >
> > This patch tells qmake to run lrelease on .ts files to create .qm files. Copied from http://www.freehackers.org/thomas/2009/03/10/fixing-qmake-missing-rule-for-ts-qm/
> >
> > Signed-off-by: Robert C. Helling <helling at atdotde.de>
> >
> 
> perhaps we should name the new file with a "subsurface-" prefix for
> better consistency.
> but i'm seeing similar code which is left in subsurface-install.pri,
> so what is the deference between the two and do we need both hunks?

No we don't. As I mentioned to Robert on IRC - he is using the same
guide that I started with. But when I tried to automate things so that
the .qm files are built when they are missing or when a .ts file is
newer than the .qm files... I must have gotten something wrong.

> BTW this is broken on win32, as when the command gets expanded the "\"
> in there are treated as escape characters by 'sh':
> QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe

Yeah, that part was entirely untested :-/

> attached patch fixed it for me.

I will look at it when I try to fix the dependencies

Thanks

/D



More information about the subsurface mailing list