sbin/sync_blinkster_venv
changeset 40 35d2eacbb4cb
child 74 c18c0211348b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync_blinkster_venv	Thu Jun 03 17:44:45 2010 +0200
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/blinkster_V$1 ]; then
+    rm -fr ~/tmp/blinkster_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/blinkster_V$1
+
+#text2unix ~/tmp/blinkster_V$1
+
+if [ -d ~/tmp/blinkster_V$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/blinkster_V$1/sbin/ web.iri.centrepompidou.fr:project/blinkster/sbin
++ core
+EOT
+fi
+
+if [ -d ~/tmp/blinkster_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/blinkster_V$1;
+fi