REM Don't copy this script to a different directory, it must be in REM cipres\cipres-build-scripts\build-for-windows. It expects to REM find buildConfig.bat above the cipres directory. REM REM This creates an archive named cipres_dist.zip in the REM current directory. The root directory of the archive REM is the name of the %CIPRES_INSTALL% directory. echo. echo on call %~dp0\..\..\..\buildConfig.bat setlocal set X_ORIG_DIR=%CD% set ARCHIVE=%X_ORIG_DIR%\cipres_dist.zip set X_NAME=cipres_dist.zip :ProcessArguments IF "%1" == "" goto Continue X_NAME=%1 shift goto ProcessArguments :Continue REM Note that running this script removes configure.properties REM in the installations services directory so that your local REM settings aren't included in the distribution. cd "%CIPRES_INSTALL%\share\cipres\resources" del /s configure.properties cd %X_ORIG_DIR% cd "%CIPRES_INSTALL%\.." for %%i in (%CIPRES_INSTALL%) do set DIRNAME=%%~ni jar cMf "%ARCHIVE%" "%DIRNAME%" :Error :Exit cd "%X_ORIG_DIR%"