setup-php/node_modules/.bin/regexp-tree
2019-09-20 21:54:46 +05:30

16 lines
325 B
Bash

#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../regexp-tree/bin/regexp-tree" "$@"
ret=$?
else
node "$basedir/../regexp-tree/bin/regexp-tree" "$@"
ret=$?
fi
exit $ret