1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh UNAME="$(uname)" ARGUMENTS=$* DIRNAME="$(dirname $0)/lib/JSBuilder" if [ $UNAME = "Darwin" ] ; then OS="mac" else OS="linux" fi CMD="$DIRNAME/jsdb/$OS/jsdb -path $DIRNAME $DIRNAME/bin/Dispatch.js $ARGUMENTS" $CMD