summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/installer_ng_stable/compile.bat2
-rw-r--r--tools/installer_ng_stable/createstructure.bat1
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/installer_ng_stable/compile.bat b/tools/installer_ng_stable/compile.bat
index abbec751a7..453b3f255b 100644
--- a/tools/installer_ng_stable/compile.bat
+++ b/tools/installer_ng_stable/compile.bat
@@ -1,7 +1,9 @@
@echo off
rem Get version
if not exist tmp mkdir tmp
+if exist tmp\build.no goto mkver
Tools\wget.exe -O tmp\build.no http://svn.miranda-ng.org/main/trunk/build/build.no
+:mkver
pushd tmp
for /F "tokens=1,2 delims= " %%i in (build.no) do set ver1=%%i.%%j
for /F "tokens=3 delims= " %%k in (build.no) do (set /a "ver2=%%k-1")
diff --git a/tools/installer_ng_stable/createstructure.bat b/tools/installer_ng_stable/createstructure.bat
index 5a1fef2ab9..126ff501bb 100644
--- a/tools/installer_ng_stable/createstructure.bat
+++ b/tools/installer_ng_stable/createstructure.bat
@@ -8,7 +8,6 @@ pushd tmp
for /F "tokens=1,2 delims= " %%i in (build.no) do set ver1=%%i.%%j
for /F "tokens=3 delims= " %%k in (build.no) do (set /a "ver2=%%k-1")
set Mirver=%ver1%.%ver2%
-del /F /Q build.no
popd
rem end