summaryrefslogtreecommitdiffstats
path: root/site/bin/sync
blob: 964c62fac69d1d177e1a7abc017dd9cc3b0e189c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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