#!/bin/bash

absolutePath(){
[[ -d $1 ]] && { cd "$1"; echo "$(pwd -P)"; } ||
( cd "$(dirname "$1")" || exit 1; echo "$(pwd -P)/$(basename "$1")"; )
}

HERE="`absolutePath $0`"
HERE="`dirname ${HERE}`"
NODE_OPTIONS="--max-old-space-size=8192" node ${HERE}/compiler-js $*
