- 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, utils, samples, 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
+
+ # now do the same thing for wxPython, skipping it's build dirs and such
+ mkdir ${tarver}/wxPython
+ cp -pf --link ${wxdir}/wxPython/* ${tarver}/wxPython > /dev/null 2>&1
+ for d in contrib demo distrib distutils docs include licence samples scripts src SWIG wx wxPython; do
+ cp -Rpf --link ${wxdir}/wxPython/$d ${tarver}/wxPython #> /dev/null 2>&1
+ done
+
+# cp -Rpf --link ${wxdir}/* ${tarver} > /dev/null 2>&1
+# rm -r ${tarver}/bld*
+# rm -r ${tarver}/wxPython/build*
+# rm -r ${tarver}/wxPython/_build_rpm
+
+ echo "*** Removing uneeded stuff from copy of CVS tree"