build/sbin/sync_site_cinecast
changeset 1 0d28b7c10758
child 4 468bf32a3664
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/site_cinecast_V$1 ]; then
       
     4     rm -fr ~/tmp/site_cinecast_V$1;
       
     5 fi
       
     6 
       
     7 svn export file:///iridata/svn/site_cinecast/tags/V$1/web ~/tmp/site_cinecast_V$1
       
     8 
       
     9 #text2unix ~/tmp/site_cinecast_V$1
       
    10 
       
    11 if [ -d ~/tmp/site_cinecast_V$1 ]; then
       
    12 	cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/site_cinecast_V$1/ web.iri.centrepompidou.fr:/iridata/www/cinecast/
       
    13 + core
       
    14 P google?.html
       
    15 P .htpasswd
       
    16 P .htaccess
       
    17 P **/wp-config.php
       
    18 P apps/***
       
    19 P documents/***
       
    20 P munin/***
       
    21 P shotdetect/***
       
    22 P wiki/***
       
    23 EOT
       
    24 fi
       
    25 
       
    26 if [ -d ~/tmp/site_cinecast_V$1 ]; then
       
    27     echo "Deleting temp export"
       
    28     rm -fr ~/tmp/site_cinecast_V$1;
       
    29 fi