sbin/sync/sync_theend_venv
changeset 6 9e29d68d48f1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_theend_venv	Fri Aug 24 17:44:08 2012 +0200
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/theend_V$1 ]; then
+    rm -fr ~/tmp/theend_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/theend_V$1
+
+#text2unix ~/tmp/theend_V$1
+
+if [ -d ~/tmp/theend_V$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/theend_V$1/virtualenv/ web.iri.centrepompidou.fr:projects/theend/virtualenv
++ core
+P web/env/***
+P setup/env/***
+EOT
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/theend_V$1/src/ldt/ web.iri.centrepompidou.fr:projects/theend/ldt
++ core
+EOT
+fi
+
+if [ -d ~/tmp/theend_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/theend_V$1;
+fi