- cvs -d ${cvsroot} export -r ${cvs_tag} -d ${tarver} wxWindows > /dev/null 2>&1
- if [ "$?" != "0" ]; then
- echo "*** CVS failure, exiting."
- exit 1
- fi
-
- echo "*** Removing unneeded stuff from CVS tree"
+ mkdir -p ${tarver}
+
+ # copy root dir contents
+ cp -pf --link ${wxdir}/* ${tarver} > /dev/null 2>&1
+
+ # copy all top dirs except CVS, build, demos, samples, utils, and wxPython
+ for d in art build contrib debian distrib docs include lib locale misc patches src; do
+ if [ -e ${wxdir}/$d ]; then
+ cp -Rpf --link ${wxdir}/$d ${tarver} #> /dev/null 2>&1
+ fi
+ done
+
+# # and tex2rtf too
+# mkdir ${tarver}/utils
+# cp -Rpf --link ${wxdir}/utils/tex2rtf ${tarver}/utils
+# # tex2rtf needs these files
+# mkdir ${tarver}/samples
+# cp -Rpf --link ${wxdir}/samples/sample.* ${tarver}/samples
+
+ # now do the same thing for wxPython, skipping it's build dirs and such
+ for dir in `grep -v '#' ${wxdir}/wxPython/distrib/DIRLIST`; do
+ mkdir ${tarver}/${dir}
+ ##echo "cp -pf --link ${wxdir}/${dir}/* ${tarver}/${dir}"
+ cp -pf --link ${wxdir}/${dir}/* ${tarver}/${dir} > /dev/null 2>&1
+ done
+
+ # using DIRLIST as above will normally skip any files starting
+ # with a dot, but there are a few .files that we do want to
+ # copy...
+ for dir in wxPython/distrib/msw; do
+ cp -pf --link ${wxdir}/${dir}/.[a-zA-Z]* ${tarver}/${dir} > /dev/null 2>&1
+ done
+
+ echo "*** Removing uneeded stuff from copy of CVS tree"