|
0
|
1 |
#!/usr/bin/env bash
|
|
|
2 |
set -e
|
|
|
3 |
if [ -d ~/tmp/platform_V$1 ]; then
|
|
|
4 |
rm -fr ~/tmp/platform_V$1;
|
|
|
5 |
fi
|
|
|
6 |
|
|
|
7 |
hg archive -r V$1 ~/tmp/platform_V$1
|
|
|
8 |
|
|
|
9 |
#text2unix ~/tmp/platform_V$1
|
|
|
10 |
|
|
|
11 |
if [ -d ~/tmp/platform_V$1 ]; then
|
|
|
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/platform_V$1/virtualenv/ clint.culturel.centrepompidou.lan:projects/platform/virtualenv
|
|
|
13 |
+ core
|
|
|
14 |
EOT
|
|
|
15 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/platform_V$1/src/ldt/ clint.culturel.centrepompidou.lan:projects/platform/ldt
|
|
|
16 |
+ core
|
|
|
17 |
EOT
|
|
|
18 |
fi
|
|
|
19 |
|
|
|
20 |
if [ -d ~/tmp/platform_V$1 ]; then
|
|
|
21 |
echo "Deleting temp export"
|
|
|
22 |
rm -fr ~/tmp/platform_V$1;
|
|
|
23 |
fi
|