Feuerwehr-eppingen/vendor/bin/php-parse
2022-08-17 21:48:37 +02:00

11 lines
310 B
Bash

#!/usr/bin/env sh
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../nikic/php-parser/bin" && pwd)
if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
# We are in Cgywin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
fi
"${dir}/php-parse" "$@"