1
|
1 |
#!/usr/bin/env bash
|
|
2 |
set -e
|
|
3 |
if [ -d ~/tmp/site_cinecast_V$1 ]; then
|
|
4 |
rm -fr ~/tmp/site_cinecast_V$1;
|
|
5 |
fi
|
|
6 |
|
4
|
7 |
#svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1
|
|
8 |
hg clone https://www.iri.centrepompidou.fr/dev/hg/cinecast.fr ~/tmp/site_cinecast_V$1_clone
|
|
9 |
hg archive -R ~/tmp/site_cinecast_V$1_clone -t files -r V$1 ~/tmp/site_cinecast_V$1
|
1
|
10 |
|
|
11 |
#text2unix ~/tmp/site_cinecast_V$1
|
|
12 |
|
|
13 |
if [ -d ~/tmp/site_cinecast_V$1 ]; then
|
4
|
14 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/web web.iri.centrepompidou.fr:/iridata/www/cinecast/
|
1
|
15 |
+ core
|
|
16 |
P google?.html
|
|
17 |
P .htpasswd
|
|
18 |
P .htaccess
|
|
19 |
P **/wp-config.php
|
|
20 |
P apps/***
|
|
21 |
P documents/***
|
|
22 |
P munin/***
|
|
23 |
P shotdetect/***
|
|
24 |
P wiki/***
|
|
25 |
EOT
|
|
26 |
fi
|
|
27 |
|
|
28 |
if [ -d ~/tmp/site_cinecast_V$1 ]; then
|
|
29 |
echo "Deleting temp export"
|
4
|
30 |
rm -fr ~/tmp/site_cinecast_V$1*;
|
1
|
31 |
fi
|