sbin/sync/sync_bobines
changeset 9 6b26d67421b7
parent 6 656e95e8cbc1
equal deleted inserted replaced
8:8b5949767198 9:6b26d67421b7
     1 #!/usr/bin/env bash
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/bobines2012_V$1 ]; then
       
     4     rm -fr ~/tmp/bobines2012_V$1;
       
     5 fi
       
     6 
       
     7 hg archive -r V$1 ~/tmp/bobines2012_V$1
       
     8 
       
     9 #text2unix ~/tmp/bobines2012_V$1
       
    10 
       
    11 if [ -d ~/tmp/bobines2012_V$1 ]; then
       
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/bobines2012_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/iri-research/labs/bobines-feministes/
       
    13 + core
       
    14 P robots.txt
       
    15 EOT
       
    16 fi
       
    17 
       
    18 if [ -d ~/tmp/bobines2012_V$1 ]; then
       
    19     echo "Deleting temp export"
       
    20     rm -fr ~/tmp/bobines2012_V$1;
       
    21 fi
       
    22