sync scripts + resources
authorymh <ymh.work@gmail.com>
Tue, 21 Feb 2012 12:58:52 +0100
changeset 28 41087fe3db69
parent 10 dd7d86fbee70
child 29 9e1a250c7235
sync scripts + resources
sbin/sync/sync_client
sbin/sync/sync_server
sbin/sync/sync_server_venv
server/virtualenv/res/lib/lib_create_env.py
server/virtualenv/res/src/iri_tweet.tar.gz
server/virtualenv/web/res/res_create_env.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_client	Tue Feb 21 12:58:52 2012 +0100
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    rm -fr ~/tmp/bubbletv_$1;
+fi
+
+hg archive -r $1 ~/tmp/bubbletv_$1 -X ".hg*"
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bubbletv_$1/client/ iri@ftv.iri-research.org:/srv/www/bubbletv
++ core
+EOT
+fi
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/bubbletv_$1;
+fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_server	Tue Feb 21 12:58:52 2012 +0100
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    rm -fr ~/tmp/bubbletv_$1;
+fi
+
+hg archive -r $1 ~/tmp/bubbletv_$1 -X ".hg*"
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bubbletv_$1/server/web iri@ftv.iri-research.org:/srv/wsgi/bubbletv
++ core
+EOT
+fi
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/bubbletv_$1;
+fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/sync_server_venv	Tue Feb 21 12:58:52 2012 +0100
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+set -e
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    rm -fr ~/tmp/bubbletv_$1;
+fi
+
+hg archive -r $1 ~/tmp/bubbletv_$1 -X ".hg*"
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bubbletv_$1/server/virtualenv/ ftv.iri-research.org:project/bubbletv/virtualenv
++ core
+EOT
+fi
+
+if [ -d ~/tmp/bubbletv_$1 ]; then
+    echo "Deleting temp export"
+    rm -fr ~/tmp/bubbletv_$1;
+fi
--- a/server/virtualenv/res/lib/lib_create_env.py	Mon Feb 20 17:44:20 2012 +0100
+++ b/server/virtualenv/res/lib/lib_create_env.py	Tue Feb 21 12:58:52 2012 +0100
@@ -23,7 +23,8 @@
     'WERKZEUG' : { 'setup': 'werkzeug', 'url':'http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.8.1.tar.gz','local':'Werkzeug-0.8.1.tar.gz'},
     'JINJA2' : { 'setup': 'jinja2', 'url':'http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.6.tar.gz','local':'Jinja2-2.6.tar.gz'},
     'PYTZ' : { 'setup':'pytz', 'url': 'http://pypi.python.org/packages/source/p/pytz/pytz-2011n.tar.bz2', 'local': 'pytz-2011n.tar.bz2'},
-    'RFC3339' : { 'setup':'pyRFC3339', 'url': 'http://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-0.1.tar.gz', 'local': 'pyRFC3339-0.1.tar.gz'},    
+    'RFC3339' : { 'setup':'pyRFC3339', 'url': 'http://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-0.1.tar.gz', 'local': 'pyRFC3339-0.1.tar.gz'},
+    'IRI_TWEET' : { 'setup':'iri_tweet', 'url': 'iri_tweet.tar.gz', 'local': 'iri_tweet.tar.gz'},    
 }
 
 if system_str == 'Windows':
Binary file server/virtualenv/res/src/iri_tweet.tar.gz has changed
--- a/server/virtualenv/web/res/res_create_env.py	Mon Feb 20 17:44:20 2012 +0100
+++ b/server/virtualenv/web/res/res_create_env.py	Tue Feb 21 12:58:52 2012 +0100
@@ -29,6 +29,7 @@
     ('ANYJSON', 'pip', None, None),
     ('PYTZ', 'pip', None, None),
     ('RFC3339', 'pip', None, None),
+    ('IRI_TWEET', 'pip', None, None),
 ])