diff options
Diffstat (limited to 'site/trunk')
-rw-r--r-- | site/trunk/bin/sync | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/site/trunk/bin/sync b/site/trunk/bin/sync new file mode 100644 index 0000000000..964c62fac6 --- /dev/null +++ b/site/trunk/bin/sync @@ -0,0 +1,30 @@ +PATH="$PATH:/usr/local/bin" +export PATH + +## +## Sync Tuscany web site +## + +# Cleanup in case something went wrong from last time +# This was happening frequently with all svn changes +(cd "/www/tuscany.apache.org/"; svn cleanup) + +# Make sure we have the latest content +(cd "/www/tuscany.apache.org/"; svn up --quiet) + +# Install the cwiki exported content +rsync -r "/www/confluence-exports/TUSCANY/" "/www/tuscany.apache.org/" + +# Make sure everything is group writable +chmod -R g+w "/www/tuscany.apache.org/" > /dev/null + + +## +## Sync Tuscany 2.x documentation +## + +# Install the cwiki exported content +rsync -r "/www/confluence-exports/TUSCANYxDOCx2x/" "/www/tuscany.apache.org/documentation-2x" + +# Make sure everything is group writable +chmod -R g+w "/www/tuscany.apache.org/documentation-2x" > /dev/null |