comparison nodejs/run.sh @ 939:a74b4d986a91

Move examples for nodejs into nodejs/examples/ sub-directories. See INSTALL.txt. Use nodejs/examples/run.sh to run examples. For example, cd nodejs/examples; ./run.sh examples/testsvg/testsvg.js
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 12 Nov 2010 17:39:04 +0800
parents
children 652199a55802
comparison
equal deleted inserted replaced
938:13b9acbbe9a3 939:a74b4d986a91
1 #!/bin/sh
2
3 ABS=`realpath $0`
4 BASE=`dirname $ABS`
5 NODE_PATH=$BASE:$NODE_PATH
6 export NODE_PATH
7
8 DIR=`dirname $1`
9 FNAME=`basename $1`
10
11 cd $DIR; node $FNAME