sbin/sync/sync_ldt_platform_venv
author ymh <ymh.work@gmail.com>
Wed, 27 Oct 2010 23:43:29 +0200
changeset 16 438b8a86ee72
parent 1 eb9188f2ee4f
permissions -rwxr-xr-x
Added tag V00.05 for changeset 397487a6bf90

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