4 DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
12 USER=`whoami 2> /dev/null` || true
16 \rm -rf /tmp/${USER}/${REP}
19 cp -drf ${REP} /tmp/${USER}/${REP}
21 cd /tmp/${USER}/${REP}
23 find . -name "CVS" -depth -exec \rm -rf {} \;
24 find . -type f -exec chmod u+rw {} \;
28 TAR_FILE=${REP}`date +_%d.%m.%Y_%H.%M`.tgz
30 tar cvfz ${TAR_FILE} ${REP}
32 cp ${TAR_FILE} ${DIR}/..
34 \rm -rf /tmp/${USER}/${REP} ${TAR_FILE}