diff --git a/buildtool.cpp b/buildtool.cpp
index 4ba7ccfe9e8392f3026a78b1119e0019648a8ee4..2b10f35777e791257e4e5c6e244950a527d80745 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
varname = varname.substr(svnPrefix.size());
String val;
SvnInfo svnInfo;
+ if (varname == "revision")
+ {
+ if (!svnInfo.query(varname, val))
+ return "";
+ result = "r"+val;
+ }
if (!svnInfo.query(varname, val))
return false;
result = val;
FILE *destf = fopen(destNative.c_str(), "wb");
if (!destf)
{
+ fclose(srcf);
error("copyFile cannot open %s for writing", srcNative.c_str());
return false;
}