Skip to content
Browse files

Merge pull request #91 from devoncrouse/master

Use relative path for zookeeper.node symlink
  • Loading branch information...
2 parents 3716432 + 64ae3c0 commit d02b6d7bb2c0bb545b0261d06ff6b2195fc216a5 @kuebk kuebk committed Sep 30, 2013
Showing with 15 additions and 2 deletions.
  1. +1 −1 binding.gyp
  2. +13 −0 libzk-symlink.sh
  3. +1 −1 package.json
View
2 binding.gyp
@@ -46,7 +46,7 @@
"action_name": "symlink",
"inputs": ["<@(PRODUCT_DIR)/zookeeper.node"],
"outputs": ["<(module_root_dir)/build/zookeeper.node"],
- "action": ["ln", "-s", "<@(PRODUCT_DIR)/zookeeper.node", "<(module_root_dir)/build/zookeeper.node"]
+ "action": ["sh", "libzk-symlink.sh", "<@(_inputs)"]
}]
}
],
View
13 libzk-symlink.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ $# -ne 1 ]
+then
+ echo "Usage: $0 <PRODUCT_DIR>"
+ exit 1
+fi
+
+PRODUCT_DIR=$1
+FILE=$(basename $PRODUCT_DIR)
+BUILD_TYPE=$(basename $(dirname $PRODUCT_DIR))
+
+ln -s $BUILD_TYPE/$FILE build/$FILE
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "zookeeper"
,"description": "apache zookeeper client (zookeeper async API >= 3.4.0)"
- ,"version": "3.4.5-1"
+ ,"version": "3.4.5-2"
,"author": "Yuri Finkelstein <yurif2003@yahoo.com>"
,"contributors": [
"Yuri Finkelstein <yurif2003@yahoo.com>"

0 comments on commit d02b6d7

Please sign in to comment.
Something went wrong with that request. Please try again.