build/sbin/sync_site_cinecast
changeset 1 0d28b7c10758
child 4 468bf32a3664
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/sbin/sync_site_cinecast	Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/site_cinecast_V$1 ]; then
+    rm -fr ~/tmp/site_cinecast_V$1;
+fi
+
+svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1
+
+#text2unix ~/tmp/site_cinecast_V$1
+
+if [ -d ~/tmp/site_cinecast_V$1 ]; then
+	cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/ web.iri.centrepompidou.fr:/iridata/www/cinecast/
++ core
+P google?.html
+P .htpasswd
+P .htaccess
+P **/wp-config.php
+P apps/***
+P documents/***
+P munin/***
+P shotdetect/***
+P wiki/***
+EOT
+fi
+
+if [ -d ~/tmp/site_cinecast_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/site_cinecast_V$1;
+fi