@echo off
rem ***
rem ***  This batch file is called by GALMKWGM - the Worldgroup Manager
rem ***  packaging utility.  By default, we use PKZIP for archiving, and
rem ***  ZIP2EXE for converting to a self-extracting executable.  However,
rem ***  you may freely change the commands around to use any archiver and
rem ***  self-extractor of your choice.  This file is not overwritten when
rem ***  upgrading to newer versions of Worldgroup.
rem ***
if "%1" == "*EXE*" goto EXTRACT

pkzip -# -a %1 %2
rem ***
rem *** The command below is used to add a comment to your archive.  You can
rem *** change this comment by editing WGMCMT.TXT in your main server directory.
rem *** Subsequently, if you do not want your archive files to have comments,
rem *** you can delete this command from the batch file.
rem ***
pkzip -# -z %1 < wgmcmt.txt

goto DONE

:EXTRACT
zip2exe -o %2 >nul
goto DONE

:DONE
