@ECHO OFF
REM FLGTZIP.BAT
REM Optional packer for FLGTSTA result files.
REM Requires ZIP.EXE in PATH or current directory.

F:
CD \FLGCMP

IF EXIST FLGTSTA.ZIP DEL FLGTSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating FLGTSTA.ZIP > ZIP.LOG
ZIP -r FLGTSTA.ZIP RUN.LOG SUMMARY.TXT COMPARE.LOG UCOMP.LOG HELPER.TXT OUT PUBOUT SETUP UNOV UPUB USETUP >> ZIP.LOG

REM Cleanup generated test directories after ZIP.
ECHO Cleaning generated test directories... >> ZIP.LOG
IF EXIST \FLGTEST\NUL DELTREE /Y \FLGTEST >> ZIP.LOG
IF EXIST \FLGTMP\NUL DELTREE /Y \FLGTMP >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\FLGCMP\FLGTSTA.ZIP
ECHO   F:\FLGCMP\ZIP.LOG
ECHO.
