Last change
on this file since 376 was 372, checked in by bcornec, 19 years ago |
merge -r363:371 $SVN_M/branches/stable
|
-
Property svn:executable
set to
*
|
File size:
864 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # $Id$
|
---|
4 | #
|
---|
5 | # Delivery of the Web site in a DocumentRoot
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Please replace with your destination
|
---|
9 | #
|
---|
10 | DESTDIR=/var/www/html/mondo
|
---|
11 | DESTMACH=www1.mondorescue.org
|
---|
12 | DESTUSER=apache
|
---|
13 | MONDODIR=/mondo/www/html/mondo
|
---|
14 |
|
---|
15 |
|
---|
16 | dname=`dirname $0`
|
---|
17 | prem=`echo $dname |cut -c1`
|
---|
18 | if [ ${prem} == "/" ]; then
|
---|
19 | export TOOLHOME=$dname
|
---|
20 | else
|
---|
21 | export TOOLHOME=${PWD}/$dname
|
---|
22 | fi
|
---|
23 |
|
---|
24 | . $TOOLHOME/common-env
|
---|
25 |
|
---|
26 | rm -rf $DESTDIR
|
---|
27 | cp -a ${BASE}/svn/${VER}/website $DESTDIR
|
---|
28 | cp -a ${BASE}/svn/${VER}/documentation/* $DESTDIR/docs
|
---|
29 | find $DESTDIR -type d | xargs chmod 755
|
---|
30 | find $DESTDIR -type f | xargs chmod 644
|
---|
31 | if [ _"$1" == _"" ); then
|
---|
32 | exit 0
|
---|
33 | fi
|
---|
34 | cd $DESTDIR
|
---|
35 | tar cfj /tmp/mondo-www.tz2 .
|
---|
36 | ssh ${DESTUSER}@${DESTMACH} "rm -rf ${MONDODIR} ; mkdir ${MONDODIR}"
|
---|
37 | scp /tmp/mondo-www.tz2 ${DESTUSER}@${DESTMACH}:/tmp
|
---|
38 | ssh ${DESTUSER}@${DESTMACH} "cd ${MONDODIR} ; tar xfj /tmp/mondo-www.tz2"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.