comparison nodejs/run.sh @ 1094:613a7caa9bd6

Dynamic link libmbfly.so against nodejs plugin
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 04 Dec 2010 12:40:04 +0800
parents 652199a55802
children bced6fe39856
comparison
equal deleted inserted replaced
1092:e9f617b21db1 1094:613a7caa9bd6
1 #!/bin/sh 1 #!/bin/sh
2 2
3 ABS=`realpath $0` 3 ABS=`realpath $0`
4 BASE=`dirname $ABS` 4 if [ -z "$SRCDIR" ]; then
5 NODE_PATH=$BASE:$BASE/objs/default:$NODE_PATH 5 SRCDIR=`dirname $ABS`/..
6 fi
7 if [ -z "$BUILDDIR" ]; then
8 BUILDDIR=`dirname $ABS`/..
9 fi
10
11 NODE_PATH=${BUILDDIR}/nodejs/objs/default:${SRCDIR}/nodejs:$NODE_PATH
6 export NODE_PATH 12 export NODE_PATH
13
14 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BUILDDIR}/src/.libs/
15 export LD_LIBRARY_PATH
7 16
8 DIR=`dirname $1` 17 DIR=`dirname $1`
9 FNAME=`basename $1` 18 FNAME=`basename $1`
10 19
11 cd $DIR; node $FNAME 20 cd $DIR; node $FNAME