| author | ymh <ymh.work@gmail.com> |
| Fri, 13 Apr 2018 12:43:08 +0200 | |
| branch | documentation |
| changeset 696 | 06825f3aa213 |
| parent 136 | 78e72cc505b9 |
| permissions | -rwxr-xr-x |
| 136 | 1 |
#!/usr/bin/env bash |
2 |
set -e |
|
3 |
if [ -d ~/tmp/hdalab_V$1 ]; then |
|
4 |
rm -fr ~/tmp/hdalab_V$1; |
|
5 |
fi |
|
6 |
||
7 |
hg archive -r V$1 ~/tmp/hdalab_V$1 |
|
8 |
||
9 |
#text2unix ~/tmp/hdalab_V$1 |
|
10 |
||
11 |
if [ -d ~/tmp/hdalab_V$1 ]; then |
|
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/hdalab_V$1/virtualenv/ web.iri.centrepompidou.fr:projects/hdalab/virtualenv |
|
13 |
+ core |
|
14 |
EOT |
|
15 |
fi |
|
16 |
||
17 |
if [ -d ~/tmp/hdalab_V$1 ]; then |
|
18 |
echo "Deleting temp export" |
|
19 |
rm -fr ~/tmp/hdalab_V$1; |
|
20 |
fi |