first commit
authorymh <ymh.work@gmail.com>
Thu, 29 Sep 2011 14:00:12 +0200
changeset 0 368be7c741c4
child 1 40d6b5e3dcd7
first commit
.hgignore
.project
sbin/.svn/entries
sbin/.svn/text-base/sync_regardssignes.svn-base
sbin/sync/sync_regardssignes
virtualenv/.keepme
web/.keepme
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,8 @@
+syntax: regexp
+^web/index$
+^web/log$
+.*\.pyc$
+^web/\.htaccess$
+^web/static/media/ldt$
+^web/static/site$
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.project	Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>regardssignes_hg</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/.svn/entries	Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,69 @@
+10
+
+dir
+18
+svn+ssh://ymh@clint.culturel.centrepompidou.lan/iridata/svn/regardssignes/trunk/build/sbin
+svn+ssh://ymh@clint.culturel.centrepompidou.lan/iridata/svn/regardssignes
+
+
+
+2010-02-17T04:06:29.842384Z
+11
+ymh
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+c3ef06d5-b63e-434f-91e5-176c2fea5bc8
+
+
+
+
+
+
+0
+
+sync_regardssignes
+file
+
+
+
+
+2010-03-04T16:06:12.000000Z
+d3043794fee6cbe5a6d293a029c6dcd0
+2010-02-17T04:06:29.842384Z
+11
+ymh
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+740
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/.svn/text-base/sync_regardssignes.svn-base	Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/regardssignes_V$1 ]; then
+    rm -fr ~/tmp/regardssignes_V$1;
+fi
+
+svn export file:///iridata/svn/regardssignes/tags/V$1 ~/tmp/regardssignes_V$1
+
+#text2unix ~/tmp/regardssignes_V$1/web
+
+if [ -d ~/tmp/regardssignes_V$1/web ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/
++ core
+P .htpasswd
+P .htaccess
+P regardssignes/.htaccess
+P regardssignes/config.py
+P robots.txt
+P log/***
+P index/***
+P static/media/***
+P static/content/***
+EOT
+fi
+
+if [ -d ~/tmp/regardssignes_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/regardssignes_V$1;
+fi
+
+ssh web.iri.centrepompidou.fr sudo apache2ctl restart
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_regardssignes	Thu Sep 29 14:00:12 2011 +0200
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/regardssignes_V$1 ]; then
+    rm -fr ~/tmp/regardssignes_V$1;
+fi
+
+hg archive -r V$1 ~/tmp/platform_V$1
+
+#text2unix ~/tmp/regardssignes_V$1/web
+
+if [ -d ~/tmp/regardssignes_V$1/web ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/
++ core
+P .htpasswd
+P .htaccess
+P regardssignes/.htaccess
+P regardssignes/config.py
+P regardssignes/modwsgi.wsgi
+P robots.txt
+P env/***
+P log/***
+P index/***
+P static/media/***
+P static/content/***
+EOT
+fi
+
+if [ -d ~/tmp/regardssignes_V$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/regardssignes_V$1;
+fi
+
+ssh web.iri.centrepompidou.fr sudo apache2ctl restart