]> granicus.if.org Git - curl/commitdiff
generate.bat: Use buildconf.bat for prerequisite file clean-up
authorSteve Holme <steve_holme@hotmail.com>
Wed, 5 Aug 2015 18:15:46 +0000 (19:15 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 5 Aug 2015 18:15:46 +0000 (19:15 +0100)
buildconf.bat
projects/generate.bat

index 876d4d6188473d7c0f90c2d581f745dc13cfa997..6a76006d9bdf363033392f4c674321aa332ddb8e 100644 (file)
@@ -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
index fcda1d648ffe222f25dbc50461873fb6d1ac90b9..5251e19f1d6d3587dc5bbdfd4e032d1c88014904 100644 (file)
@@ -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