second attempt at showing if a build is was compiled with local modifications

(first attempt was r3889; tested on linux this time :D)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3979 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99 2009-08-14 06:48:15 +00:00
parent eba5b83772
commit 153ec6836e
2 changed files with 3 additions and 4 deletions

View File

@ -149,9 +149,8 @@ def GenerateRevFile(flavour, template, output):
except:
svnrev = ""
revstr = svnrev + "-" + flavour
tmpstr = open(template, "r").read().replace("$WCREV$",revstr)
revstr = '"' + svnrev + "-" + flavour + '"'
tmpstr = open(template, "r").read().replace("$WCMODS?\"$WCREV$M\":\"$WCREV$\"$",revstr)
outfile = open(output, 'w')
outfile.write(tmpstr +"\n")
outfile.close()

View File

@ -1,2 +1,2 @@
#define SVN_REV $WCREV$
#define SVN_REV_STR "$WCREV$"
#define SVN_REV_STR $WCMODS?"$WCREV$M":"$WCREV$"$