sbin/sync_blinkster_venv
author ymh <ymh.work@gmail.com>
Mon, 02 May 2011 17:47:03 +0200
changeset 74 c18c0211348b
parent 40 35d2eacbb4cb
child 76 a0bf943e9163
permissions -rwxr-xr-x
prepare new version

#!/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/virtualenv/ web.iri.centrepompidou.fr:project/blinkster/virtualenv
+ core
EOT
fi

if [ -d ~/tmp/blinkster_V$1 ]; then
    echo "Deleting temp export"
    rm -fr ~/tmp/blinkster_V$1;
fi