Permalink
Browse files

auto get the latest Google CityHash from google code repo.

  • Loading branch information...
1 parent 3a3d693 commit c31c9734b67c8575e851c1cc12f94600e3880726 @fbzhong committed Apr 13, 2011
Showing with 17 additions and 1 deletion.
  1. +17 −1 install.sh
View
@@ -1,5 +1,21 @@
#!/bin/sh
+cd `dirname $0`
+src="cityhash/src"
+
+# get the cityhash src if needed.
+if [ ! -d "${src}" ] ; then
+ mkdir -p "${src}"
+fi
+
+if [ ! -e "${src}/city.h" ] ; then
+ wget -O "${src}/city.h" http://cityhash.googlecode.com/svn/trunk/src/city.h
+fi
+
+if [ ! -e "${src}/city.cc" ] ; then
+ wget -O "${src}/city.cc" http://cityhash.googlecode.com/svn/trunk/src/city.cc
+fi
+
+# build.
node-waf configure
node-waf build
-

0 comments on commit c31c973

Please sign in to comment.