From: Wayne Davison Date: Sat, 24 Apr 2004 18:53:00 +0000 (+0000) Subject: Tweaked the names of the subdirs inside the tmp dir. X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/34483bc7942a5b08cd94acfcd5791eb27fdf87d3 Tweaked the names of the subdirs inside the tmp dir. --- diff --git a/verify-patches b/verify-patches index 4037362..ee2cddf 100755 --- a/verify-patches +++ b/verify-patches @@ -14,11 +14,11 @@ tmpdir=,tmp-for-patch-tests [ -d $tmpdir ] || mkdir $tmpdir cd $tmpdir || exit 1 -[ -d ,workdir ] || mkdir ,workdir -echo "Using CVS to update the $tmpdir/,cvsdir copy of the source." -cvs -d "$root" co -d ,cvsdir rsync +[ -d workdir ] || mkdir workdir +echo "Using CVS to update the $tmpdir/cvsdir copy of the source." +cvs -d "$root" co -d cvsdir rsync -cd ,workdir || exit 1 +cd workdir || exit 1 if [ -z "$1" ]; then set -- ../../*.diff @@ -36,11 +36,11 @@ for xx in "${@}"; do while : ; do echo -e "\n----------- $xx ------------" if [ $apply = y ]; then - rsync -a --delete ../,cvsdir/ . + rsync -a --delete ../cvsdir/ . patch -p0 <$xx | tee ,patch.output new='' for nn in `sed -n 's/^patching file //p' ,patch.output`; do - [ -f ../,cvsdir/$nn ] || new="$new $nn" + [ -f ../cvsdir/$nn ] || new="$new $nn" done if grep "^Hunk #[0-9]* FAILED" ,patch.output >/dev/null; then default=F