author | ymh@caf4f556-3d62-0410-8435-a86758001935 |
Wed, 03 Feb 2010 14:52:45 +0000 | |
branch | wordpress |
changeset 134 | f445f2aa8c33 |
parent 133 | c0473fcf3be5 |
permissions | -rwxr-xr-x |
133
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
2 |
set -e |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
3 |
if [ -d ~/tmp/site_iri_V$1 ]; then |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
4 |
rm -fr ~/tmp/site_iri_V$1; |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
5 |
fi |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
6 |
|
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
7 |
svn export file:///iridata/svn/site_iri/tags/V$1/web ~/tmp/site_iri_V$1 |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
8 |
|
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
9 |
#text2unix ~/tmp/site_iri_V$1 |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
10 |
|
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
11 |
if [ -d ~/tmp/site_iri_V$1 ]; then |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
12 |
cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_iri_V$1/ www.iri.centrepompidou.fr:/home/www/ |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
13 |
P apps/*** |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
14 |
P documents/*** |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
15 |
P .htpasswd |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
16 |
P munin/*** |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
17 |
P shotdetect/*** |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
18 |
P wiki/*** |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
19 |
P wp-config.php |
134
f445f2aa8c33
corrections before publication
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
133
diff
changeset
|
20 |
P .htaccess |
f445f2aa8c33
corrections before publication
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
133
diff
changeset
|
21 |
P google*.html |
133
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
22 |
EOT |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
23 |
fi |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
24 |
|
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
25 |
if [ -d ~/tmp/site_iri_V$1 ]; then |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
26 |
echo "Deleting temp export" |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
27 |
rm -fr ~/tmp/site_iri_V$1; |
c0473fcf3be5
reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff
changeset
|
28 |
fi |