cssesc 302 Bytes
Newer Older
Patrick's avatar
Patrick committed
1
2
3
4
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
patri's avatar
patri committed
5
    *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
Patrick's avatar
Patrick committed
6
7
8
esac

if [ -x "$basedir/node" ]; then
patri's avatar
patri committed
9
  exec "$basedir/node"  "$basedir/../cssesc/bin/cssesc" "$@"
Patrick's avatar
Patrick committed
10
else 
patri's avatar
patri committed
11
  exec node  "$basedir/../cssesc/bin/cssesc" "$@"
Patrick's avatar
Patrick committed
12
fi