Mercurial > dive4elements > website
comparison scritps/d4e-website-loader.sh @ 37:265e1a46de07
rsync with hidden files
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Wed, 05 Mar 2014 16:49:25 +0100 |
parents | c66f4b393d15 |
children |
comparison
equal
deleted
inserted
replaced
36:eea27e51e482 | 37:265e1a46de07 |
---|---|
46 echo "Username:" | 46 echo "Username:" |
47 read username | 47 read username |
48 fi | 48 fi |
49 | 49 |
50 if [ -z $destination ];then | 50 if [ -z $destination ];then |
51 echo "Destination (hit enter for current directory `pwd` [should be an empty directory]):" | 51 echo "Destination (hit enter for current directory `pwd`/ [should be an empty directory]):" |
52 read destination | 52 read destination |
53 if [ -z $destination ];then | 53 if [ -z $destination ];then |
54 destination=`pwd` | 54 destination=`pwd`+/ |
55 fi | 55 fi |
56 fi | 56 fi |
57 | 57 |
58 mkdir -p $destination | |
58 hg clone ssh://$username@scm.wald.intevation.org/hg/dive4elements/website/ $destination | 59 hg clone ssh://$username@scm.wald.intevation.org/hg/dive4elements/website/ $destination |
59 | 60 |
60 echo "run the following command to upload the website from repository" | 61 echo "run the following command to upload the website from repository" |
61 echo "rsync -rvPC --perms --chmod=ug+rw,o+r,Dg+s,Da+x,u-s,Fg-s,o-wt --exclude '*.swp' --delete $destination/* $username@wald.intevation.org:/$PROJECT/htdocs/" | 62 echo "rsync -rvPC --perms --chmod=ug+rw,o+r,Dg+s,Da+x,u-s,Fg-s,o-wt --exclude '*.swp' --delete $destination $username@wald.intevation.org:/$PROJECT/htdocs/" |