view nodejs/run.sh @ 1055:1375aa8629ac

Rename njs_runtime_t::xrt to njs_runtime_t::mb_rt
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 24 Nov 2010 15:49:26 +0800
parents 652199a55802
children 613a7caa9bd6
line wrap: on
line source

#!/bin/sh

ABS=`realpath $0`
BASE=`dirname $ABS`
NODE_PATH=$BASE:$BASE/objs/default:$NODE_PATH
export NODE_PATH

DIR=`dirname $1`
FNAME=`basename $1`

cd $DIR; node $FNAME