#!/usr/bin/env rc
# dircp src dest - copy a tree with tar

switch($#*){
case 2
        @ {builtin cd $1 && 9 tar c .} | @ {builtin cd $2 && 9 tar xT}
case *
        echo usage: dircp from to >[1=2]
        exit usage
}

