forked from pentaho/mondrian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployDoc.sh
executable file
·59 lines (51 loc) · 1.12 KB
/
deployDoc.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
#
# This software is subject to the terms of the Eclipse Public License v1.0
# Agreement, available at the following URL:
# http://www.eclipse.org/legal/epl-v10.html.
# You must accept the terms of that agreement to use this software.
#
# Copyright (C) 2005-2009 Pentaho
# All Rights Reserved.
#
# This is a script to deploy Mondrian's website.
# Only the release manager (jhyde) should run this script.
set -e
set -v
generate=true
if [ "$1" == --nogen ]; then
shift
generate=
fi
# Prefix is usually "release" or "head"
prefix="$1"
# Directory at sf.net
docdir=
case "$prefix" in
3.0|release) export docdir=htdocs;;
head) export docdir=head;;
*) echo "Bad prefix '$prefix'"; exit 1;;
esac
cd $(dirname $0)/..
if [ "$generate" ]; then
ant doczip
else
echo Skipping generation...
fi
scp dist/doc.tar.gz jhyde@shell.sf.net:
GROUP_DIR=/home/groups/m/mo/mondrian
ssh -T jhyde@shell.sf.net <<EOF
set -e
set -v
rm -f $GROUP_DIR/doc.tar.gz
mv doc.tar.gz $GROUP_DIR
cd $GROUP_DIR
tar xzf doc.tar.gz
rm -rf old
if [ -d $docdir ]; then mv $docdir old; fi
mv doc $docdir
rm -rf old
rm -f doc.tar.gz
./makeLinks
EOF
# End deployDoc.sh