@echo NOTE WELL: Requires a zipsrcP.bat file to be in the path ...
@set TEMPVERS=
call zipsetup
@if "%TEMPVERS%x" == "x" goto ERR1
@setlocal
@set TEMPZF=..\..\build\msvc\zipatlas.bat
@if NOT EXIST %TEMPZF% goto ERR2
@set TEMPZF=..\..\..\atlas-%TEMPVERS%-src.zip
@echo Zipping the full source - to %TEMPZF%
@set TEMP1=-a
@if NOT EXIST %TEMPZF% goto DNUP
@echo WARNING: %TEMPZF% already exists ... doing UPDATE only ...
@set TEMP1=-u
:DNUP
@echo Continue with ZIP? Ctlr+C to abort ...
@pause
@set TEMPZF=..\atlas-%TEMPVERS%-src.zip
@cd ..\..
call zipsrcP *.* %TEMPZF% -xbuild\msvc\temp*
@if ERRORLEVEL 1 goto ERRNZ
@cd build\msvc
@goto END

:ERR1
@echo ERROR: The version, TEMPVERS environment variable not set ... can not build zip file ...
@goto WAIT
:ERR2
@echo ERROR: Can NOT locate %TEMPZF% file. Path arrangement not as expected ... can not build zip file ...
@goto WAIT
:ERRNZ
@echo ERROR: Creation of ZIP %TEMPZF% failed ... maybe no zip8.bat batch file available ...
@goto WAIT

:WAIT
@pause
:END
@endlocal

