sbin/sync/sync_theend_venv
changeset 7 fb450f78bfd1
parent 6 9e29d68d48f1
child 8 fd17983fd0bd
equal deleted inserted replaced
6:9e29d68d48f1 7:fb450f78bfd1
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/theend_V$1 ]; then
       
     4     rm -fr ~/tmp/theend_V$1;
       
     5 fi
       
     6 
       
     7 hg archive -r V$1 ~/tmp/theend_V$1
       
     8 
       
     9 #text2unix ~/tmp/theend_V$1
       
    10 
       
    11 if [ -d ~/tmp/theend_V$1 ]; then
       
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/theend_V$1/virtualenv/ web.iri.centrepompidou.fr:projects/theend/virtualenv
       
    13 + core
       
    14 P web/env/***
       
    15 P setup/env/***
       
    16 EOT
       
    17     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/theend_V$1/src/ldt/ web.iri.centrepompidou.fr:projects/theend/ldt
       
    18 + core
       
    19 EOT
       
    20 fi
       
    21 
       
    22 if [ -d ~/tmp/theend_V$1 ]; then
       
    23     echo "Deleting temp export"
       
    24     rm -fr ~/tmp/theend_V$1;
       
    25 fi