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

#!/usr/bin/env bash
set -e
if [ -d ~/tmp/site_cinecast_V$1 ]; then
    rm -fr ~/tmp/site_cinecast_V$1;
fi

svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1

#text2unix ~/tmp/site_cinecast_V$1

if [ -d ~/tmp/site_cinecast_V$1 ]; then
	cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/ web.iri.centrepompidou.fr:/iridata/www/cinecast/
+ core
P google?.html
P .htpasswd
P .htaccess
P **/wp-config.php
P apps/***
P documents/***
P munin/***
P shotdetect/***
P wiki/***
EOT
fi

if [ -d ~/tmp/site_cinecast_V$1 ]; then
    echo "Deleting temp export"
    rm -fr ~/tmp/site_cinecast_V$1;
fi