build/sbin/sync_site_iri
author Anthony Ly <anthonyly.com@gmail.com>
Tue, 12 Mar 2013 18:21:39 +0100
changeset 206 919b4ddb13fa
parent 174 53861b8bcaf7
permissions -rwxr-xr-x
modification logo footer cccb

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

svn export file:///iridata/svn/site_iri/tags/V$1/web ~/tmp/site_iri_V$1

#text2unix ~/tmp/site_iri_V$1

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

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