Mercurial > MadButterfly
view nodejs/run.sh @ 940:652199a55802
Add objs/default to NODE_PATH in run.sh
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 12 Nov 2010 17:54:07 +0800 |
parents | a74b4d986a91 |
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