svnversion . | cut -f '2' -d ':'
It may only work on linux/max os x, I haven't had a chance to try it on win32. This was noted here: http://www.archivum.info/qt-interest@trolltech.com/2008-09/msg00070.html