Skip to content

Commit

Permalink
MONDRIAN: Update script.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 6750]
  • Loading branch information
julianhyde committed May 31, 2006
1 parent e2639d4 commit 11b742d
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions doc/deployDoc.sh
Expand Up @@ -13,8 +13,28 @@
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
2.1.1) export docdir=htdocs;;
head) export docdir=head;;
*) echo "Bad prefix '$prefix'"; exit 1;;
esac

cd $(dirname $0)/..
ant doczip
if [ "$generate" ]; then
ant doczip
else
echo Skipping generation...
fi

scp dist/doc.tar.gz jhyde@shell.sf.net:

Expand All @@ -28,9 +48,11 @@ mv doc.tar.gz $GROUP_DIR
cd $GROUP_DIR
tar xzf doc.tar.gz
rm -rf old
mv htdocs old
mv doc htdocs
if [ -d $docdir ]; then mv $docdir old; fi
mv doc $docdir
rm -rf old
rm -f doc.tar.gz
./makeLinks
EOF

# End deployDoc.sh

0 comments on commit 11b742d

Please sign in to comment.