diff --git a/SconsTests/utils.py b/SconsTests/utils.py index 2ade1d6368..9b0ce04930 100644 --- a/SconsTests/utils.py +++ b/SconsTests/utils.py @@ -149,8 +149,8 @@ def GenerateRevFile(flavour, template, output): except: svnrev = "" - revstr = '"' + svnrev + "-" + flavour + '"' - tmpstr = open(template, "r").read().replace("$WCMODS?\"$WCREV$M\":\"$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 b63737e458..9d1bb27bef 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 $WCMODS?"$WCREV$M":"$WCREV$"$ +#define SVN_REV_STR "$WCMODS?$WCREV$M:$WCREV$$"