sbin/sync_blinkster_venv
author ymh <ymh.work@gmail.com>
Tue, 15 Mar 2011 10:35:58 +0100
changeset 66 bddfee419d93
parent 40 35d2eacbb4cb
child 74 c18c0211348b
permissions -rwxr-xr-x
Added tag V00.19 for changeset 3d18d15135f1

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