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

F:
CD \FDGCMP

IF EXIST FDGTSTA.ZIP DEL FDGTSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

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

REM Cleanup generated test directories after ZIP.
ECHO Cleaning generated test directories... >> ZIP.LOG
IF EXIST \FDGTEST\NUL DELTREE /Y \FDGTEST >> ZIP.LOG
IF EXIST \FDGTMP\NUL DELTREE /Y \FDGTMP >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\FDGCMP\FDGTSTA.ZIP
ECHO   F:\FDGCMP\ZIP.LOG
ECHO.
