equal
deleted
inserted
replaced
2 set -e |
2 set -e |
3 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
3 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
4 rm -fr ~/tmp/site_cinecast_V$1; |
4 rm -fr ~/tmp/site_cinecast_V$1; |
5 fi |
5 fi |
6 |
6 |
7 svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1 |
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 |
8 |
10 |
9 #text2unix ~/tmp/site_cinecast_V$1 |
11 #text2unix ~/tmp/site_cinecast_V$1 |
10 |
12 |
11 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
13 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
12 cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/ web.iri.centrepompidou.fr:/iridata/www/cinecast/ |
14 cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/web web.iri.centrepompidou.fr:/iridata/www/cinecast/ |
13 + core |
15 + core |
14 P google?.html |
16 P google?.html |
15 P .htpasswd |
17 P .htpasswd |
16 P .htaccess |
18 P .htaccess |
17 P **/wp-config.php |
19 P **/wp-config.php |
23 EOT |
25 EOT |
24 fi |
26 fi |
25 |
27 |
26 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
28 if [ -d ~/tmp/site_cinecast_V$1 ]; then |
27 echo "Deleting temp export" |
29 echo "Deleting temp export" |
28 rm -fr ~/tmp/site_cinecast_V$1; |
30 rm -fr ~/tmp/site_cinecast_V$1*; |
29 fi |
31 fi |