[mythtv] [mythtv-commits] mythtv commit: r8666 - in trunk/mythtv by nigel

Nigel Pearson nigel at ind.tansu.com.au
Thu Jan 26 07:25:01 UTC 2006

> How about changing the script? I don't know if "test -s" works on
> OSX/BSD, but I've attached something that should work if it does..

	It does. Not sure we need the sh -c "..." though.

	I was trying to be clever and use SVNVERSION with an if,
but that then meant that I had to touch .pro file to cause
qmake to re-run to update that variable in the makefile,
which was getting hairy.

	I will test a but more and commit something like this:

version.commands = echo 'const char *myth_source_version =' \
'"'`(svnversion $${SVNTREEDIR} 2>/dev/null) || echo Unknown`'";' > 
.vers.new ; \
diff .vers.new version.cpp > .vers.diff ; \
if test -s .vers.diff ; then mv -f .vers.new version.cpp ; \
else rm -f .vers.new .vers.diff ; fi

Nigel Pearson, nigel at ind.tansu.com.au | "Now the world has gone to bed,
Telstra Dev. Lab, Sydney, Australia   |  Darkness won't engulf my head,
Office: 9814 4803    Fax:  9814 4897  |  I can see by infrared,
Mobile: 0408 664435  Home: 9792 6998  |  How I hate the night." -Marvin

More information about the mythtv-dev mailing list