Merge with ac0f457756eba344678be3c6d81975edaf96869b draft
authorcavaliet
Fri, 05 Oct 2012 18:04:38 +0200
changeset 9 6b26d67421b7
parent 8 8b5949767198 (current diff)
parent 7 ac0f457756eb (diff)
child 10 af7c60361e3a
Merge with ac0f457756eba344678be3c6d81975edaf96869b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgtags	Fri Oct 05 18:04:38 2012 +0200
@@ -0,0 +1,1 @@
+656e95e8cbc18ac82283e401fa5a1ac2f15d8142 V00.01
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.project	Fri Oct 05 18:04:38 2012 +0200
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>bobines2012</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>
--- a/sbin/sync/sync_bobines	Fri Oct 05 18:03:55 2012 +0200
+++ b/sbin/sync/sync_bobines	Fri Oct 05 18:04:38 2012 +0200
@@ -1,1 +1,22 @@
 #!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/bobines2012_V$1 ]; then
+    rm -fr ~/tmp/bobines2012_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/bobines2012_V$1
+
+#text2unix ~/tmp/bobines2012_V$1
+
+if [ -d ~/tmp/bobines2012_V$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bobines2012_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/iri-research/labs/bobines-feministes/
++ core
+P robots.txt
+EOT
+fi
+
+if [ -d ~/tmp/bobines2012_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/bobines2012_V$1;
+fi
+