Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated quickstart and shell script

  • Loading branch information...
commit 5c6b9df761248cca780dcf1ec294968e66ec7bd8 1 parent 9d551a3
@tschaub authored
Showing with 4 additions and 18 deletions.
  1. +1 −2  bin/geoscript
  2. +3 −16 doc/quickstart.rst
View
3  bin/geoscript
@@ -50,7 +50,7 @@ else
fi
ARGS=
-if [ -x $MODULES ]; then
+if [ "$MODULES" ]; then
ARGS="-Dgeoscript.modules=$MODULES"
fi
@@ -65,4 +65,3 @@ if [ $# -eq 1 ]; then
else
java -cp $CP $ARGS $CLASS
fi
-
View
19 doc/quickstart.rst
@@ -3,28 +3,19 @@
Quick Start
===========
-GeoScript JS is a package of CommonJS_ modules that uses the Mozilla Rhino JavaScript interpreter and depends on the GeoTools library. Currently these dependencies are managed with Maven. The easiest way to get set up with GeoScript JS is to clone the repository with Git_ and install dependencies with Maven_ (2.2.1).
-
Getting GeoScript JS
--------------------
-To get the GeoScript JS source, clone the repository with `git`::
-
- git clone git://github.com/tschaub/geoscript-js.git
-
-Next, use `mvn` to pull down dependencies and run tests::
-
- cd geoscript-js
- mvn install
+To install GeoScript JS, `download the latest <download>`__ release and extract the zip archive.
Running GeoScript JS
--------------------
-After getting the package source and installing dependencies, you can open the JavaScript console and import any of the GeoScript modules.
+After extracting the release archive, you can open the GeoScript shell console and import any of the GeoScript modules by running `bin/geoscript`.
.. code-block:: javascript
- ~/geoscript-js$ ./geoscript
+ ~/geoscript-js$ ./bin/geoscript
>> var geom = require("geoscript/geom");
>> var p1 = new geom.Point([0, 0]);
@@ -36,7 +27,3 @@ After getting the package source and installing dependencies, you can open the J
true
>> quit()
-
-.. _CommonJS: http://commonjs.org/
-.. _Git: http://git-scm.com/
-.. _Maven: http://maven.apache.org/
Please sign in to comment.
Something went wrong with that request. Please try again.