#!/usr/bin/csh
# Tar and compress the latest patch for wxWindows.

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

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

echo About to tar patch...
echo   From   $1
echo   To     $2/wxpatch.tar.Z
echo CTRL-C if this is not correct.
set dummy=$<

/bin/rm -f $2/wxpatch.tar.Z
cd $1
/usr/bin/ls `cat $1/distrib/patchk2.rsp` > /tmp/tarwx
tar cvf $2/wxpatch.tar -I /tmp/tarwx
/bin/rm -f /tmp/tarwx
echo Compressing...
compress $2/wxpatch.tar

echo
echo wxWindows patch archived.
goto end

usage:
echo Make wxWindows patch in compressed tar format.
echo Makes wxpatch.tar.Z.
echo Usage: tarpatch source destination
echo e.g. tardist ~/wx ~/wx/deliver

end:

