]> SALOME platform Git repositories - tools/sat.git/blob - data/templates/CppSalome8/archive
Salome HOME
initial version of a template to generate application modules (in order to replace...
[tools/sat.git] / data / templates / CppSalome8 / archive
1 #! /bin/bash
2
3 #
4 DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5 cd ${DIR}
6 DIR=`pwd`
7
8 REP=`basename $DIR`
9
10 if [ -z "$USER" ]
11 then
12     USER=`whoami 2> /dev/null` || true
13 fi
14
15 mkdir -p /tmp/${USER}
16 \rm -rf /tmp/${USER}/${REP}
17
18 cd ${DIR}/..
19 cp -drf ${REP} /tmp/${USER}/${REP}
20
21 cd /tmp/${USER}/${REP}
22 ./root_clean
23 find . -name "CVS" -depth -exec \rm -rf {} \;
24 find . -type f -exec chmod u+rw {} \;
25
26 cd /tmp/${USER}
27
28 TAR_FILE=${REP}`date +_%d.%m.%Y_%H.%M`.tgz
29
30 tar cvfz ${TAR_FILE} ${REP}
31
32 cp ${TAR_FILE} ${DIR}/..
33
34 \rm -rf /tmp/${USER}/${REP} ${TAR_FILE}