summary refs log tree commit diff stats
path: root/ext/libxml-wdk
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libxml-wdk')
-rw-r--r--ext/libxml-wdk/win32/build-x64.bat4
-rw-r--r--ext/libxml-wdk/win32/build-x86.bat4
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/libxml-wdk/win32/build-x64.bat b/ext/libxml-wdk/win32/build-x64.bat
index 1360ab36..088d5387 100644
--- a/ext/libxml-wdk/win32/build-x64.bat
+++ b/ext/libxml-wdk/win32/build-x64.bat
@@ -1,4 +1,5 @@
 @echo off
+set TARGET="LibXML-WDK 2.7.8 x64.7z"
 set WDK_ROOT=c:\WinDDK\7600.16385.1
 set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt
 set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64
@@ -13,5 +14,6 @@ rmdir /q /s lib
 nmake /nologo /f Makefile.msvc install
 move lib\libxml2.dll bin
 set PATH=%PATH%;%PROGRAMW6432%\7-Zip
-7z a "LibXML-WDK 2.7.8-x64.7z" bin include lib
+del %TARGET%
+7z a %TARGET% bin include lib
 pause
diff --git a/ext/libxml-wdk/win32/build-x86.bat b/ext/libxml-wdk/win32/build-x86.bat
index 4f2738b1..cc94a15f 100644
--- a/ext/libxml-wdk/win32/build-x86.bat
+++ b/ext/libxml-wdk/win32/build-x86.bat
@@ -1,4 +1,5 @@
 @echo off
+set TARGET="LibXML-WDK 2.7.8 x86.7z"
 set WDK_ROOT=c:\WinDDK\7600.16385.1
 set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt
 set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
@@ -12,5 +13,6 @@ rmdir /q /s lib
 nmake /nologo /f Makefile.msvc install
 move lib\libxml2.dll bin
 set PATH=%PATH%;%PROGRAMW6432%\7-Zip
-7z a "LibXML-WDK 2.7.8 x86.7z" bin include lib
+del %TARGET%
+7z a %TARGET% bin include lib
 pause