7 echo 'currendir == CVS (old) version; $1 == dir w/new version; [$2 == "print"]'
11 t=/tmp/cvsbranchdiff.$$
17 find "$1" -not -regex '.*/CVS\(\|/[^/]+\)$' '(' '!' -type d -o -printf "%P/\n" ')' '(' '!' -type f -o -printf "%P\n" ')'|sort
19 (findnice . ;echo "/") >$t/old
20 (findnice "$1" ) >$t/new
21 diff -U 999999 $t/old $t/new|sed -e '1,/^@@.*@@$/d' >$t/diff
22 if [ "$2" = print ];then
29 -e 's#^[+]\(.*\)/$#mkdir '\''./\1'\''; cvs add -kk '\''\1'\''#' \
30 -e 's#^[+]\(.*[^/]\)$#cp -p '\'"$1"'/\1'\'' '\''./\1'\''; cvs add -kk '\''\1'\''#' \
31 -e '\#^[-]\(.*\)/$#d' \
32 -e 's#^[-]\(.*[^/]\)$#cvs remove -f '\''\1'\''#' \
33 -e '\#^[ ]\(.*\)/$#d' \
34 -e 's#^[ ]\(.*[^/]\)$#cmp -s '\'"$1"'/\1'\'' '\''./\1'\'' || cp -p '\'"$1"'/\1'\'' '\''./\1'\''#' \