###rm -rf ${MAIN_CVMFSEXPORTDIR}/cvmfs/.data # this is slow, rsync is faster (https://unix.stackexchange.com/a/79656)
cd${MAIN_CVMFSEXPORTDIR}/cvmfs;mkdir EMPTYDIR; rsync -a--delete EMPTYDIR/ .data || fail "[copy_cvmfs] rsync";cd - # NB for rsync, add a trailing "/" to the source and none to the target
date
[[-e$MAIN_HEPWLBUILDDIR/cvmfs ]]&&echo"[copy_cvmfs] removing cvmfs dir in $MAIN_HEPWLBUILDDIR/"&&rm-rf$MAIN_HEPWLBUILDDIR/cvmfs
if[-e$MAIN_HEPWLBUILDDIR/cvmfs ];then
echo"[copy_cvmfs] removing cvmfs dir in $MAIN_HEPWLBUILDDIR/"