author | ymh <ymh.work@gmail.com> |
Thu, 10 Jun 2010 11:46:53 +0200 | |
changeset 11 | 3903840d6720 |
parent 0 | ecdfc63274bf |
child 14 | 3373a0dad50f |
permissions | -rw-r--r-- |
0 | 1 |
#!/usr/bin/env bash |
2 |
set -e |
|
11 | 3 |
if [ -d ~/tmp/eulalie_V$1 ]; then |
4 |
rm -fr ~/tmp/eulalie_V$1; |
|
0 | 5 |
fi |
6 |
||
11 | 7 |
hg archive -r V$1 ~/tmp/eulalie_V$1 |
0 | 8 |
|
11 | 9 |
#text2unix ~/tmp/eulalie_V$1 |
0 | 10 |
|
11 | 11 |
if [ -d ~/tmp/eulalie_V$1 ]; then |
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/eulalie_V$1/sbin/ web.iri.centrepompidou.fr:project/eulalie/sbin |
|
0 | 13 |
+ core |
14 |
EOT |
|
15 |
fi |
|
16 |
||
11 | 17 |
if [ -d ~/tmp/eulalie_V$1 ]; then |
0 | 18 |
echo "Deleting temp export" |
11 | 19 |
rm -fr ~/tmp/eulalie_V$1; |
0 | 20 |
fi |