rem snapshot archives.
:begin
+ rem Set our variables
+ setlocal
+ set MODE=GENERATE
+
rem Switch to this batch file's directory
cd /d "%~0\.." 1>NUL 2>&1
rem Check we are running from a curl git repository
if not exist GIT-INFO goto norepo
- rem Set our variables
- setlocal
- set MODE=GENERATE
-
:parseArgs
if "%~1" == "" goto start
rem Check we are running on a Windows NT derived OS
if not "%OS%" == "Windows_NT" goto nodos
+ rem Set our variables
+ setlocal ENABLEEXTENSIONS
+ set VERSION=ALL
+ set MODE=GENERATE
+
rem Check we are not running on a network drive
if "%~d0."=="\\." goto nonetdrv
rem Check we are running from a curl git repository
if not exist ..\GIT-INFO goto norepo
- rem Set our variables
- setlocal ENABLEEXTENSIONS
- set VERSION=ALL
- set MODE=GENERATE
-
rem Detect programs. HAVE_<PROGNAME>
rem When not found the variable is set undefined. The undefined pattern
rem allows for statements like "if not defined HAVE_PERL (command)"
exit /b %EXITCODE%
:error
- endlocal
+ if "%OS%" == "Windows_NT" endlocal
exit /B 1
:success