diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | bootstrap.sh | 32 | ||||
-rw-r--r-- | src/nodejs/package.json | 11 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b91047 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +usr/ diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..02d71df --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,32 @@ +#! /bin/sh + +NODE_VERSION=0.3.5 + +## Download Helper +# $1 - url +# $2 - tarball name +download() { + echo $1 + mkdir -p usr/src + + if [ ! -f ${2} ]; then + curl ${1} > ${2} + fi + + tar -xf ${2} -C usr/src +} + +# fetch and compile nodejs +download http://nodejs.org/dist/node-v${NODE_VERSION}.tar.gz node-${NODE_VERSION}.tar.gz +rm -f node-${NODE_VERSION}.tar.gz + +cd usr/src/node-v${NODE_VERSION} +./configure --prefix=../.. +make install +cd ../../.. + +# fetch and compile npm +curl http://npmjs.org/install.sh | PATH=`pwd`/usr/bin:${PATH} sh + +# load development code and compile dependencies +usr/bin/npm link src/nodejs/ diff --git a/src/nodejs/package.json b/src/nodejs/package.json new file mode 100644 index 0000000..88fc755 --- /dev/null +++ b/src/nodejs/package.json @@ -0,0 +1,11 @@ +{ "name" : "xapi-osm-spline" +, "version" : "0.0.1" +, "description" : "An osm xapi implementation" +, "autor" : "osm@spline <osm@lists.spline.de> (http://osm.spline.de)" +, "files" : ["."] +, "dependencies" : + { "postgres" : "*" + , "clutch" : "*" + , "xmlbuilder" : "*" + } +} |