source:
trunk/workshop-routing-foss4g/checkout.sh
@
68
Revision 63, 1.5 KB checked in by djay, 13 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[63] | 1 | #!/bin/sh |
2 | ############################################################### | |
3 | # | |
4 | # Purpose: Automated build and update of pgRouting website | |
5 | # Authors: Daniel Kastl <daniel@georepublic.de> | |
6 | # | |
7 | ############################################################### | |
8 | # Copyright (c) 2010 Georepublic UG | |
9 | # | |
10 | # Licensed under the GNU LGPL. | |
11 | # | |
12 | # This library is free software; you can redistribute it and/or modify it | |
13 | # under the terms of the GNU Lesser General Public License as published | |
14 | # by the Free Software Foundation, either version 2.1 of the License, | |
15 | # or any later version. This library is distributed in the hope that | |
16 | # it will be useful, but WITHOUT ANY WARRANTY, without even the implied | |
17 | # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
18 | # See the GNU Lesser General Public License for more details, either | |
19 | # in the "LICENSE.LGPL.txt" file distributed with this software or at | |
20 | # web page "http://www.fsf.org/licenses/lgpl.html". | |
21 | # | |
22 | ||
23 | # About: | |
24 | # ===== | |
25 | # This script will run the following tasks | |
26 | # - Update to the latest changes of the workshop repository | |
27 | # - Build documentation with Sphinx | |
28 | # | |
29 | # NOTE: This script was written to run on Ubuntu server. | |
30 | # It requires an existing | |
31 | # clone of pgRouting workshop repository | |
32 | ||
33 | # Running: | |
34 | # ======= | |
35 | # This script can run as cron job for example | |
36 | # ./checkout.sh | |
37 | ||
38 | REPDIR="/opt/pgrouting/workshop/docs/" | |
39 | WEBDIR="/var/www/pgrouting-workshop/" | |
40 | ||
41 | cd $REPDIR | |
42 | ||
43 | # Update to latest version | |
44 | git pull -q origin | |
45 | ||
46 | # Create HTML | |
47 | sphinx-build -b html -Q $REPDIR $WEBDIR | |
48 | ||
49 |
Note: See TracBrowser
for help on using the repository browser.