sbin/sync/sync_regardssignes_venv
author ymh <ymh.work@gmail.com>
Fri, 01 Feb 2013 17:04:54 +0100
changeset 37 f905af03e1c8
parent 11 777eed530773
permissions -rwxr-xr-x
update virtualenv creation

#!/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/regardssignes_V$1

#text2unix ~/tmp/regardssignes_V$1

if [ -d ~/tmp/regardssignes_V$1 ]; then
    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/virtualenv/ web.iri.centrepompidou.fr:projects/regardssignes/virtualenv
+ core
EOT
fi

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