Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/web/www/openlayers/install.sh
Parent Directory
|
Revision Log
Revision 1275 -
(show annotations)
(download)
(as text)
Mon Apr 15 16:28:37 2013 UTC (11 years, 11 months ago) by amb
File MIME type: text/x-sh
File size: 478 byte(s)
Mon Apr 15 16:28:37 2013 UTC (11 years, 11 months ago) by amb
File MIME type: text/x-sh
File size: 478 byte(s)
Default to downloading openlayers 2.12.
1 | #!/bin/sh -x |
2 | |
3 | version=2.12 |
4 | |
5 | # Download the file. |
6 | |
7 | wget http://openlayers.org/download/OpenLayers-$version.tar.gz |
8 | |
9 | # Uncompress it. |
10 | |
11 | tar -xzf OpenLayers-$version.tar.gz |
12 | |
13 | # Create a custom OpenLayers file |
14 | |
15 | (cd OpenLayers-$version/build && python build.py ../../routino.cfg && cp OpenLayers.js ..) |
16 | |
17 | # Copy the files. |
18 | |
19 | cp -p OpenLayers-$version/OpenLayers.js . |
20 | cp -pr OpenLayers-$version/img . |
21 | cp -pr OpenLayers-$version/theme . |
22 | |
23 | # Delete the remainder |
24 | |
25 | rm -rf OpenLayers-$version |
Properties
Name | Value |
---|---|
svn:executable | * |