Code

- change cmdline option to --export-latex.
[inkscape.git] / buildtool.cpp
index 4ba7ccfe9e8392f3026a78b1119e0019648a8ee4..2b10f35777e791257e4e5c6e244950a527d80745 100644 (file)
@@ -4704,6 +4704,12 @@ bool MakeBase::lookupProperty(const String &propertyName, String &result)
         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;
@@ -5207,6 +5213,7 @@ bool MakeBase::copyFile(const String &srcFile, const String &destFile)
     FILE *destf = fopen(destNative.c_str(), "wb");
     if (!destf)
         {
+        fclose(srcf);
         error("copyFile cannot open %s for writing", srcNative.c_str());
         return false;
         }