sbin/.svn/text-base/sync_regardssignes.svn-base
author tc
Fri, 30 Sep 2011 16:06:04 +0200
changeset 1 40d6b5e3dcd7
parent 0 368be7c741c4
permissions -rw-r--r--
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.

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

svn export file:///iridata/svn/regardssignes/tags/V$1 ~/tmp/regardssignes_V$1

#text2unix ~/tmp/regardssignes_V$1/web

if [ -d ~/tmp/regardssignes_V$1/web ]; then
    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/
+ core
P .htpasswd
P .htaccess
P regardssignes/.htaccess
P regardssignes/config.py
P robots.txt
P log/***
P index/***
P static/media/***
P static/content/***
EOT
fi

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

ssh web.iri.centrepompidou.fr sudo apache2ctl restart