root/trunk/MapFish/deploy/deploy-sample.sh

Revision 649, 2.3 kB (checked in by elemoine, 7 months ago)

introduce variable PROJECT_MAPFISH_DIR in deploy. Useful when the Map Fish? dir must somewhere else than $PROJECT/MapFish

Line 
1 #!/bin/bash
2 #
3 # Copyright (C) 2008  Camptocamp
4 #
5 # This file is part of MapFish
6 #
7 # MapFish is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # MapFish is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with MapFish.  If not, see <http://www.gnu.org/licenses/>.
19
20 # MapFish sample deployment file
21 #
22 # See the instructions at http://trac.mapfish.org/trac/mapfish/wiki/deployment for
23 # more informations
24
25 # === The next section shouldn't be edited, but kept in sync with deploy-sample.sh ===
26 # See: http://trac.mapfish.org/trac/mapfish/browser/trunk/MapFish/deploy/deploy-sample.sh
27
28 set -e
29
30 DEPLOY_SVN=http://www.mapfish.org/svn/mapfish/trunk/MapFish/deploy
31 COMPAT_VERSION=1
32
33 checkout_deploy() {
34     OUTPUT=$(svn co $SVN_CO_OPTIONS $DEPLOY_SVN)
35     if echo "$OUTPUT" | grep -q "deploy/"; then
36         REV=$(svn info deploy|grep Revision:|sed "s/Revision: //")
37         echo "Deploy script was retrieved or updated (rev: $REV)"
38         exec $0 $*
39     fi
40 }
41
42 if [ -z "$SKIP_UPDATE_CHECK" ]; then
43     checkout_deploy $*
44 fi
45
46 if [ ! -f deploy/deploy.sh ]; then
47     echo "Error while fetching the deploy script"
48     exit 1
49 fi
50 . deploy/deploy.sh
51
52 # === Configuration starts here ===
53
54 # Set this to "1" to install a Python environment for MapFish in this directory
55 FETCH_PYTHON_ENV=1
56
57 # Project name
58 PROJECT=myproject
59
60 # Project subversion URL
61 PROJECT_SVN_BASE=http://example.com/path/to/trunk/$PROJECT/
62
63 # Project MapFish directory
64 PROJECT_MAPFISH_DIR=$PROJECT/MapFish
65
66 # Set this to "1" if project contains a copy of MapFish (usually using svn:externals)
67 HAS_MAPFISH=1
68
69 # You can define function that will be run at certain stages in the installation process
70 # This is an example function that will be run after initialization
71 #post_init_all() {
72 #    echo "Sample post_init hook"
73 #}
74
75 # === End of configuration ===
76 # Keep the following part at the end of this file
77 main $*
78
Note: See TracBrowser for help on using the browser.