--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_regardssignes Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/regardssignes_V$1 ]; then
+ rm -fr ~/tmp/regardssignes_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/platform_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 regardssignes/modwsgi.wsgi
+P robots.txt
+P env/***
+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