Skip to content

Commit

Permalink
include deps as submodules + bootstrap.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 30, 2010
1 parent 5bb708f commit 783dab6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "deps/node-expat"]
path = deps/node-expat
url = git://github.com/astro/node-expat.git
[submodule "deps/node-xmpp"]
path = deps/node-xmpp
url = git://github.com/astro/node-xmpp.git
[submodule "deps/node-base64"]
path = deps/node-base64
url = git://github.com/brainfucker/node-base64.git
4 changes: 3 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ An HTTP REST to XMPP PubSub gateway for server-side JavaScript.

## Dependencies
* [node.js](http://github.com/ry/node)
* [node-xmpp](http://github.com/astro/node-xmpp) and [node-expat](http://github.com/astro/node-xmpp)
* [node-xmpp](http://github.com/astro/node-xmpp) and [node-expat](http://github.com/astro/node-expat)
* [node-base64](http://github.com/brainfucker/node-base64)

Use a fairly recent version of node.js and run `./bootstrap.sh`

## Usage
First, set your Superfeedr.com credentials:
export CREDS=superusr:secret
Expand Down
13 changes: 13 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# No failures allowed
set -e

for dep in node-base64 node-expat ; do
cd deps/$dep
[ -d build/default ] || mkdir -p build/default
node-waf configure
node-waf build
cd -
done

1 change: 1 addition & 0 deletions deps/node-base64
Submodule node-base64 added at ed2bf0
1 change: 1 addition & 0 deletions deps/node-expat
Submodule node-expat added at 48381b
1 change: 1 addition & 0 deletions deps/node-xmpp
Submodule node-xmpp added at f36fb3
4 changes: 4 additions & 0 deletions firetail.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
require.paths.push("deps/node-base64/build/default",
"deps/node-expat/build/default",
"deps/node-xmpp/lib");

var http = require('http');
var sys = require('sys');
var xmpp = require("xmpp");
Expand Down

0 comments on commit 783dab6

Please sign in to comment.