#!/bin/sh
#  cptree src dst
# 	copy a directory tree (on the same machine)
#
if [ -z "$2" ]; then
    echo usage: $0 src dst
    echo "    " copy a tree quickly using tar
    exit
fi

[ ! -e $2 ] || mkdir -p $2
(cd "$1"; tar cf - .) | (cd "$2"; tar xvpBf -)
