sbin/sync_blinkster_venv
author ymh <ymh.work@gmail.com>
Fri, 08 Apr 2011 17:21:37 +0200
changeset 69 4775601a2531
parent 40 35d2eacbb4cb
child 74 c18c0211348b
permissions -rwxr-xr-x
use platform and clean install files next

#!/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