sbin/sync/sync_bobines
author cavaliet
Wed, 14 Nov 2012 18:30:14 +0100
changeset 13 15fe9052fb2d
parent 6 656e95e8cbc1
permissions -rw-r--r--
Added tag V00.03 for changeset d9a6d5dd5b5e

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

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

#text2unix ~/tmp/bobines2012_V$1

if [ -d ~/tmp/bobines2012_V$1 ]; then
    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bobines2012_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/iri-research/labs/bobines-feministes/
+ core
P robots.txt
EOT
fi

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