X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=CppExamples%2FCOMPO_CXX_SRC%2Farchive;fp=CppExamples%2FCOMPO_CXX_SRC%2Farchive;h=be9d5d890d0f0656bbc46de0d275827b08130188;hb=eb23d5150f3cd1715528ba0a4668b93a7700591f;hp=0000000000000000000000000000000000000000;hpb=94653e5198a62ab14a74f61c21a4e62141158a21;p=tools%2Fhxx2salome.git diff --git a/CppExamples/COMPO_CXX_SRC/archive b/CppExamples/COMPO_CXX_SRC/archive new file mode 100755 index 0000000..be9d5d8 --- /dev/null +++ b/CppExamples/COMPO_CXX_SRC/archive @@ -0,0 +1,34 @@ +#! /bin/bash + +# +DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"` +cd ${DIR} +DIR=`pwd` + +REP=`basename $DIR` + +if [ -z "$USER" ] +then + USER=`whoami 2> /dev/null` || true +fi + +mkdir -p /tmp/${USER} +\rm -rf /tmp/${USER}/${REP} + +cd ${DIR}/.. +cp -drf ${REP} /tmp/${USER}/${REP} + +cd /tmp/${USER}/${REP} +./root_clean +find . -name "CVS" -depth -exec \rm -rf {} \; +find . -type f -exec chmod u+rw {} \; + +cd /tmp/${USER} + +TAR_FILE=${REP}`date +_%d.%m.%Y_%H.%M`.tgz + +tar cvfz ${TAR_FILE} ${REP} + +cp ${TAR_FILE} ${DIR}/.. + +\rm -rf /tmp/${USER}/${REP} ${TAR_FILE}