[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / third_party / libxml / patches / win32-clobber-makefile
blob2f7fbb45eb7b9d113a2776c697dc2dff707e229a
1 Index: libxml/win32/configure.js
2 ===================================================================
3 --- libxml.orig/win32/configure.js      2010-07-09 14:56:07.769093841 -0700
4 +++ libxml/win32/configure.js   2010-07-09 15:36:48.590268611 -0700
5 @@ -611,7 +611,13 @@
6         makefile = ".\\Makefile.mingw";
7  else if (compiler == "bcb")
8         makefile = ".\\Makefile.bcb";
9 -fso.CopyFile(makefile, ".\\Makefile", true);
10 +var new_makefile = ".\\Makefile";
11 +var f = fso.FileExists(new_makefile);
12 +if (f) {
13 +       var t = fso.GetFile(new_makefile);
14 +       t.Attributes = 0;
16 +fso.CopyFile(makefile, new_makefile, true);
17  WScript.Echo("Created Makefile.");
18  // Create the config.h.
19  var confighsrc = "..\\include\\win32config.h";