From 153ec6836e859b68e0d732fcdb72e1f44d74ed6c Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Fri, 14 Aug 2009 06:48:15 +0000 Subject: [PATCH] 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 --- SconsTests/utils.py | 5 ++--- Source/Core/Common/Src/svnrev_template.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SconsTests/utils.py b/SconsTests/utils.py index a04b5be967..2ade1d6368 100644 --- a/SconsTests/utils.py +++ b/SconsTests/utils.py @@ -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() diff --git a/Source/Core/Common/Src/svnrev_template.h b/Source/Core/Common/Src/svnrev_template.h index db42e18380..b63737e458 100644 --- a/Source/Core/Common/Src/svnrev_template.h +++ b/Source/Core/Common/Src/svnrev_template.h @@ -1,2 +1,2 @@ #define SVN_REV $WCREV$ -#define SVN_REV_STR "$WCREV$" +#define SVN_REV_STR $WCMODS?"$WCREV$M":"$WCREV$"$