build/sbin/sync_site_cinecast
author convert-repo
Mon, 22 Mar 2010 10:49:29 +0000
changeset 3 ba1be1ffaa11
parent 1 0d28b7c10758
child 4 468bf32a3664
permissions -rwxr-xr-x
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
#!/usr/bin/env bash
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
set -e
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
if [ -d ~/tmp/site_cinecast_V$1 ]; then
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
    rm -fr ~/tmp/site_cinecast_V$1;
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
fi
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
#text2unix ~/tmp/site_cinecast_V$1
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
if [ -d ~/tmp/site_cinecast_V$1 ]; then
0d28b7c10758 First commit
ymh
parents:
diff changeset
    12
	cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/ web.iri.centrepompidou.fr:/iridata/www/cinecast/
0d28b7c10758 First commit
ymh
parents:
diff changeset
    13
+ core
0d28b7c10758 First commit
ymh
parents:
diff changeset
    14
P google?.html
0d28b7c10758 First commit
ymh
parents:
diff changeset
    15
P .htpasswd
0d28b7c10758 First commit
ymh
parents:
diff changeset
    16
P .htaccess
0d28b7c10758 First commit
ymh
parents:
diff changeset
    17
P **/wp-config.php
0d28b7c10758 First commit
ymh
parents:
diff changeset
    18
P apps/***
0d28b7c10758 First commit
ymh
parents:
diff changeset
    19
P documents/***
0d28b7c10758 First commit
ymh
parents:
diff changeset
    20
P munin/***
0d28b7c10758 First commit
ymh
parents:
diff changeset
    21
P shotdetect/***
0d28b7c10758 First commit
ymh
parents:
diff changeset
    22
P wiki/***
0d28b7c10758 First commit
ymh
parents:
diff changeset
    23
EOT
0d28b7c10758 First commit
ymh
parents:
diff changeset
    24
fi
0d28b7c10758 First commit
ymh
parents:
diff changeset
    25
0d28b7c10758 First commit
ymh
parents:
diff changeset
    26
if [ -d ~/tmp/site_cinecast_V$1 ]; then
0d28b7c10758 First commit
ymh
parents:
diff changeset
    27
    echo "Deleting temp export"
0d28b7c10758 First commit
ymh
parents:
diff changeset
    28
    rm -fr ~/tmp/site_cinecast_V$1;
0d28b7c10758 First commit
ymh
parents:
diff changeset
    29
fi