Author: jerenkrantz Date: Mon Feb 7 15:34:12 2005 New Revision: 151783 URL: http://svn.apache.org/viewcvs?view=rev&rev=151783 Log: Update to work acceptable with Subversion. Modified: apr/site/trunk/docs/docs/propagate-docs.sh Modified: apr/site/trunk/docs/docs/propagate-docs.sh URL: http://svn.apache.org/viewcvs/apr/site/trunk/docs/docs/propagate-docs.sh?view=diff&r1=151782&r2=151783 ============================================================================== --- apr/site/trunk/docs/docs/propagate-docs.sh (original) +++ apr/site/trunk/docs/docs/propagate-docs.sh Mon Feb 7 15:34:12 2005 @@ -23,21 +23,26 @@ # figure out which files are unique (in the source or destination) unique="`((cd \"$srcdir\" && ls) && cd \"$dstdir\" && ls) | sort | uniq -u`" +pushd $dstdir for fname in $unique; do is_html="`echo $fname | grep '.html$'`" if test -z "$is_html"; then continue fi - if test -f "${dstdir}/${fname}"; then + if test -f "${fname}"; then # only in the destination - echo "cvs rm -f ${fname}" + svn rm ${fname} else # if this script is run more than once, then the previous run's files # will be sitting in the directory. make sure that you get them added - # manually. a simple 'cvs up' will shown them as '?' files. - echo "cvs add ${fname}" + # manually. a simple 'svn st' will shown them as '?' files. + # SVN requires that the file be present before adding it, so copy it in. + cp ${srcdir}/${fname} . + svn add ${fname} fi done +popd +# Update the rest of the files. cp ${srcdir}/[a-z]* ${dstdir}