2 # verify that cp's --remove-destination option works with -R
4 if test "$VERBOSE" = yes; then
10 t0
=`echo "$0"|sed 's,.*/,,'`.tmp
;tmp
=$t0/$$
11 trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
12 trap '(exit $?); exit' 1 2 13 15
15 mkdir
-p $tmp || framework_failure
=1
16 cd $tmp || framework_failure
=1
17 mkdir d e || framework_failure
=1
19 if test $framework_failure = 1; then
20 echo 'failure in testing framework'
26 # Do it once with no destination...
27 cp -R --remove-destination d e || fail
=1
29 # ...and again, with an existing destination.
30 cp -R --remove-destination d e || fail
=1
32 (exit $fail); exit $fail