equal
deleted
inserted
replaced
|
1 #!/usr/bin/env bash |
|
2 set -e |
|
3 if [ -d ~/tmp/site_iri_V$1 ]; then |
|
4 rm -fr ~/tmp/site_iri_V$1; |
|
5 fi |
|
6 |
|
7 svn export file:///iridata/svn/site_iri/tags/V$1/web ~/tmp/site_iri_V$1 |
|
8 |
|
9 #text2unix ~/tmp/site_iri_V$1 |
|
10 |
|
11 if [ -d ~/tmp/site_iri_V$1 ]; then |
|
12 cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_iri_V$1/ www.iri.centrepompidou.fr:/home/www/ |
|
13 P apps/*** |
|
14 P archive/*** |
|
15 P documents/*** |
|
16 P .htpasswd |
|
17 P messages/*** |
|
18 P munin/*** |
|
19 P robot.txt |
|
20 P shotdetect/*** |
|
21 P tmp/*** |
|
22 P wiki/*** |
|
23 EOT |
|
24 fi |
|
25 |
|
26 if [ -d ~/tmp/site_iri_V$1 ]; then |
|
27 echo "Deleting temp export" |
|
28 rm -fr ~/tmp/site_iri_V$1; |
|
29 fi |