> 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, [EMAIL PROTECTED] | "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

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to