1
0

pinyin 383 B

12345678910111213141516
  1. #!/bin/sh
  2. basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
  3. case `uname` in
  4. *CYGWIN*|*MINGW*|*MSYS*)
  5. if command -v cygpath > /dev/null 2>&1; then
  6. basedir=`cygpath -w "$basedir"`
  7. fi
  8. ;;
  9. esac
  10. if [ -x "$basedir/node" ]; then
  11. exec "$basedir/node" "$basedir/../pinyin/bin/pinyin" "$@"
  12. else
  13. exec node "$basedir/../pinyin/bin/pinyin" "$@"
  14. fi