Hi All,
I want to update the svn code automaticly when build my program by this way:
In my project's pro file, I add following code to get snv code, but it does not work.
Qt Code:
  1. SVNVERSION = $$system(svn info -r HEAD ../ | sed -n "/Revision/p" | sed "s/[^0-9]//g")
  2. DEFINES += VER=$${SVNVERSION}
To copy to clipboard, switch view to plain text mode 

The define in the makefile is not correct:
-DVER=Revision: -DQT_DLL -DQT

I try the sed commad in command window, it works well:
D:\Aic\FirmwareServer\QtProject>svn info -r HEAD ../ | sed -n "/Revision/p" | se
d "s/[^0-9]//g"
471

Is there any suggestion to solve this problem?