build/sbin/sync_site_iri
branchwordpress
changeset 133 c0473fcf3be5
child 134 f445f2aa8c33
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/sbin/sync_site_iri	Tue Feb 02 17:47:57 2010 +0000
@@ -0,0 +1,31 @@
+#!/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 archive/***
+P documents/***
+P .htpasswd
+P messages/***
+P munin/***
+P robot.txt
+P shotdetect/***
+P tmp/***
+P wiki/***
+P thdculture/***
+P wp-config.php
+EOT
+fi
+
+if [ -d ~/tmp/site_iri_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/site_iri_V$1;
+fi