build/sbin/sync_site_iri
branchwordpress
changeset 133 c0473fcf3be5
child 134 f445f2aa8c33
equal deleted inserted replaced
132:4d4862461b8d 133:c0473fcf3be5
       
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/site_iri_V$1 ]; then
       
     4     rm -fr ~/tmp/site_iri_V$1;
       
     5 fi
       
     6 
       
     7 svn export file:///iridata/svn/site_iri/tags/V$1/web ~/tmp/site_iri_V$1
       
     8 
       
     9 #text2unix ~/tmp/site_iri_V$1
       
    10 
       
    11 if [ -d ~/tmp/site_iri_V$1 ]; then
       
    12 	cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_iri_V$1/ www.iri.centrepompidou.fr:/home/www/
       
    13 P apps/***
       
    14 P archive/***
       
    15 P documents/***
       
    16 P .htpasswd
       
    17 P messages/***
       
    18 P munin/***
       
    19 P robot.txt
       
    20 P shotdetect/***
       
    21 P tmp/***
       
    22 P wiki/***
       
    23 P thdculture/***
       
    24 P wp-config.php
       
    25 EOT
       
    26 fi
       
    27 
       
    28 if [ -d ~/tmp/site_iri_V$1 ]; then
       
    29     echo "Deleting temp export"
       
    30     rm -fr ~/tmp/site_iri_V$1;
       
    31 fi