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

F:
CD \CIXCMP

IF EXIST CIXSTA.ZIP DEL CIXSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating CIXSTA.ZIP > ZIP.LOG
ZIP -r CIXSTA.ZIP RUN.LOG SUMMARY.TXT PRE POST LINUX UNOV UPUB UCREATOR UCOMP.LOG HELPER.TXT ULOG1.OUT ULOGIN.OUT ULOG2.OUT ULGSUP.OUT >> ZIP.LOG


REM Cleanup generated test directories after ZIP.
REM Keep the CMP/result directory because it contains the ZIP and ZIP.LOG.
ECHO Cleaning generated test directories... >> ZIP.LOG
IF EXIST \CIXTEST\NUL DELTREE /Y \CIXTEST >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\CIXCMP\CIXSTA.ZIP
ECHO   F:\CIXCMP\ZIP.LOG
ECHO.
