build/sbin/sync_site_iri
author hurons@caf4f556-3d62-0410-8435-a86758001935
Thu, 18 Mar 2010 09:56:33 +0000
changeset 170 8e3a5a6fc63e
parent 169 2d410dc8c1f3
child 171 97141c5a1549
permissions -rwxr-xr-x
English version just for user loged view New plug in : - xili-language - xili-dictionary - xili-tidy-tags And theme modification And widget modification

#!/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 --size-only --delete --filter=". -" ~/tmp/site_iri_V$1/ 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