build/sbin/sync_site_iri
author ymh@caf4f556-3d62-0410-8435-a86758001935
Tue, 02 Feb 2010 17:47:57 +0000
branchwordpress
changeset 133 c0473fcf3be5
child 134 f445f2aa8c33
permissions -rwxr-xr-x
reapply corrections after update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 archive/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    15
P documents/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    16
P .htpasswd
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    17
P messages/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    18
P munin/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    19
P robot.txt
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    20
P shotdetect/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    21
P tmp/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    22
P wiki/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    23
P thdculture/***
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    24
P wp-config.php
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    25
EOT
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    26
fi
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    27
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    28
if [ -d ~/tmp/site_iri_V$1 ]; then
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    29
    echo "Deleting temp export"
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    30
    rm -fr ~/tmp/site_iri_V$1;
c0473fcf3be5 reapply corrections after update
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    31
fi