@ECHO OFF
REM RUTZIP.BAT
REM Optional packer for RUTSTA rights-user result files.
REM Requires ZIP.EXE in PATH or current directory.

F:
CD \RUCMP

IF EXIST RUTSTA.ZIP DEL RUTSTA.ZIP
IF EXIST ZIP.LOG DEL ZIP.LOG

ECHO Creating RUTSTA.ZIP > ZIP.LOG
ZIP -r RUTSTA.ZIP RUN.LOG SUMMARY.TXT PRE MARIO POST CMP >> 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 \RUTEST\NUL DELTREE /Y \RUTEST >> ZIP.LOG
CD \
ECHO.
ECHO ZIP step finished.
ECHO Check:
ECHO   F:\RUCMP\RUTSTA.ZIP
ECHO   F:\RUCMP\ZIP.LOG
ECHO.
