#!/usr/bin/csh
# Zip up an external distribution of wxWindows.

set init=
if ( $1 == "" ) then
goto usage
endif

if ( $2 == "" ) then
goto usage
endif

echo About to zip up wxWindows distribution:
echo   From   $1
echo   To     $2/wx150_1.zip, $2/wx150_2.zip
echo CTRL-C if this is not correct.
set dummy=$<

# cd $1/src/base ; make -f makefile.unx docs
# cd $1/docs ; emacs readme.txt ; emacs changes.txt ; emacs install.txt

/bin/rm -f $2/wx150_1.zip
/bin/rm -f $2/wx150_2.zip
cd $1
/usr/bin/ls `cat $1/distrib/wx_asc.rsp` | zip -r -p -@ $3 $4 $5 $6 $7 $8 $2/wx150_1.zip
/usr/bin/ls `cat $1/distrib/wx_bin.rsp` | zip -r -p -@ $3 $4 $5 $6 $7 $8 $2/wx150_2.zip

echo
echo wxWindows archived.
goto end

usage:
echo Make external wxWindows distribution in ZIP format, to wx150src.zip, wx150doc.zip
echo Usage: zipdist source destination
echo e.g. zipdist ~/wx ~/wx/deliver

end:
