Make revision doesn't work on Windows

• May 19, 2009 - 04:56
Type
Functional
Severity
3
Status
closed
Project
  1. Open command line on Windows
  2. cd to your local copy of the MuseScore repository
  3. type make revision

Makefile contains the following Unix-only code in the "revision" section: | cut -c 1-4

Probably the string manipulation could be moved to mscore/revision.cpp using cross-platform Qt code. I don't know enough about Qt yet to make this change myself.


Comments

Severity

if svnversion is in your path you can use :
FOR /F "tokens=1 delims=M" %%A IN ('svnversion -n') DO echo %%A > mscore/mscore/revision.h

make -f Makefile.mingw revision
will output the revision number in revision.h

I put this in the windows make file under the target revision. It's commited in r1836.