#!/usr/bin/csh
# Shell script to copy wxWindows
set init=
if ( $1 == "" ) then
goto usage
endif

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

echo Copying distribution from $1 to $2...
mkdir $2
mkdir $2/include
mkdir $2/docs
mkdir $2/contrib
mkdir $2/src
mkdir $2/dummy
mkdir $2/lib
mkdir $2/bin
mkdir $2/samples
mkdir $2/utils

mkdir $2/samples/hello
mkdir $2/samples/minimal
mkdir $2/samples/form
mkdir $2/samples/mdi
mkdir $2/samples/ipc
mkdir $2/samples/objects

mkdir $2/utils/hytext
mkdir $2/utils/hytext/lib
mkdir $2/utils/hytext/src
mkdir $2/utils/hytext/docs
mkdir $2/utils/wxhelp
mkdir $2/utils/wxhelp/lib
mkdir $2/utils/wxhelp/src
mkdir $2/utils/wxhelp/docs

/bin/cp $1/include/*.h $1/include/*.rc $1/include/*.cur $2/include
/bin/cp $1/src/*.cc $1/src/*.bat $1/src/*.c $1/src/sb_scrol.o $1/src/makefile.dos $1/src/makefile.unx $2/src
/bin/cp $1/docs/*.tex $1/docs/*.ps $1/docs/*.eps $1/docs/*.dvi $1/docs/*.wri $1/docs/*.txt $1/docs/*.xlp $2/docs
/bin/cp $1/dummy/*.h $2/dummy
/bin/cp $1/contrib/* $2/contrib
/bin/cp $1/bin/* $2/bin
/bin/cp $1/lib/dummy $2/lib

cd $1/samples/hello
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/hello

cd $1/samples/minimal
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/minimal

cd $1/samples/form
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/form

cd $1/samples/ipc
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/ipc

cd $1/samples/mdi
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/mdi

cd $1/samples/objects
/bin/cp *.cc *.h makefile.dos makefile.unx *.rc *.def *.ico *_icn *.txt $2/samples/objects

cd $1/utils/hytext/src
/bin/cp *.cc *.h makefile.dos makefile.unx $2/utils/hytext/src
cd $1/utils/hytext/docs
/bin/cp *.tex *.ps *.txt *.dvi *.xlp $2/utils/hytext/docs

cd $1/utils/wxhelp/src
/bin/cp *.cc *.h *.def *.rc *_icn *.ico *.txt makefile.dos makefile.unx $2/utils/wxhelp/src
cd $1/utils/wxhelp/docs
/bin/cp *.tex *.ps *.txt *.dvi *.xlp $2/utils/wxhelp/docs

exit

usage:
echo "Usage: wxcopy Source Dest"
exit
