forked from mobilizejs/mobilize.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.bash
More file actions
executable file
·48 lines (40 loc) · 858 Bytes
/
deploy.bash
File metadata and controls
executable file
·48 lines (40 loc) · 858 Bytes
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
#!/bin/bash
#
# Simple script to make App Engine releases (trunk, tagged)
# Packs JS, makes documentation, uploads to the cloud.
#
# Usage. ./deploy.bash ~/path/to/cdn/application [google account name] [version]
#
if [ "$1" == "" ] ; then
echo "Need target folder"
exit 1
fi
if [ "$2" != "" ] ; then
ACCOUNT=$2
else
ACCOUNT=""
fi
if [ "$3" != "" ] ; then
VERSION=$3
else
VERSION=""
fi
TARGET=$1
LOCAL_APPCFG=$HOME/google_appengine/appcfg.py
if [ -f $LOCAL_APPCFG ] ; then
APPCFG=$LOCAL_APPCFG
else
APPCFG=appcfg.py # Global appengine installation
fi
cd docs
sh genapidoc.sh
cd manual
make html
cd ../..
./release.py -d $TARGET/releases $VERSION
# Use stored App Engine credentials or ask password
if [ "$ACCOUNT" != "" ]; then
$APPCFG -e $ACCOUNT update $TARGET
else
$APPCFG update $TARGET
fi