build/sbin/sync_site_iri
author hurons@caf4f556-3d62-0410-8435-a86758001935
Mon, 08 Feb 2010 14:15:44 +0000
changeset 144 df0ebfb22f63
parent 136 bde1974c263b
child 156 533324f04319
permissions -rwxr-xr-x
- Added Path variable in the config file for the LDT's donwloader script (functions.php) - Added the /ldt_template in the res directory - Modify default-widgets.php to open in blank all the rss link - clean a litlle comment in searchform.php

#!/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/ www.iri.centrepompidou.fr:/home/www/
P apps/***
P documents/***
P .htpasswd
P munin/***
P shotdetect/***
P wiki/***
P wp-config.php
P .htaccess
P google*.html
EOT
fi

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