aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-05 19:15:46 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-05 19:15:46 +0100
commit473807b95f5507dd96e2d5c89dd670ba3e623521 (patch)
treec0c51c04e95df03512e957e6104a9c88cb3522a3
parentf08e30d7bcaa8c846101e44565dd4b0970fdcf24 (diff)
generate.bat: Use buildconf.bat for prerequisite file clean-up
-rw-r--r--buildconf.bat3
-rw-r--r--projects/generate.bat5
2 files changed, 4 insertions, 4 deletions
diff --git a/buildconf.bat b/buildconf.bat
index 876d4d618..6a76006d9 100644
--- a/buildconf.bat
+++ b/buildconf.bat
@@ -35,6 +35,9 @@ rem snapshot archives.
if /i "%~1" == "-h" goto syntax
if /i "%~1" == "-help" goto syntax
+ rem Switch to this batch file's directory
+ cd /d "%~0\.." 1>NUL 2>&1
+
if not exist GIT-INFO goto nogitinfo
rem Set our variables
diff --git a/projects/generate.bat b/projects/generate.bat
index fcda1d648..5251e19f1 100644
--- a/projects/generate.bat
+++ b/projects/generate.bat
@@ -97,10 +97,7 @@ rem If you need to set the errorlevel do this instead: CALL :seterr [#]
call :gen_hugehelp
if errorlevel 1 goto nogenhugehelp
) else if "%VERSION%" == "ALL" (
- echo.
- echo Removing prerequisite files
- call :clean ..\include\curl\curlbuild.h
- call :clean ..\src\tool_hugehelp.c
+ call ..\buildconf -clean
)
if "%VERSION%" == "VC6" goto vc6
if "%VERSION%" == "VC7" goto vc7