3 dir
=$
(d
=${0%[/\\]*}; cd "$d"; cd "../zendframework/zendframework/bin" && pwd)
5 # See if we are running in Cygwin by checking for cygpath program
6 if command -v 'cygpath' >/dev
/null
2>&1; then
7 # Cygwin paths start with /cygdrive/ which will break windows PHP,
8 # so we need to translate the dir path to windows format. However
9 # we could be using cygwin PHP which does not require this, so we
10 # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
11 if [[ $
(which php
) == /cygdrive
/* ]]; then
12 dir
=$
(cygpath
-m "$dir");
16 dir
=$
(echo $dir |
sed 's/ /\ /g')
17 "${dir}/classmap_generator.php" "$@"