sbin/sync/sync_ldt_platform_venv
author ymh <ymh.work@gmail.com>
Tue, 26 Oct 2010 16:41:45 +0200
changeset 10 35d361d6e0c5
parent 1 eb9188f2ee4f
permissions -rwxr-xr-x
new version 00.04

#!/usr/bin/env bash
set -e
if [ -d ~/tmp/dring93_V$1 ]; then
    rm -fr ~/tmp/dring93_V$1;
fi

hg archive -r V$1 ~/tmp/dring93_V$1

#text2unix ~/tmp/dring93_V$1

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

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