ESign non-standard tables (#359)
[openemr.git] / vendor / bin / templatemap_generator.php
blob284d20ee5dc79cdf6fe2780ff4f7ceed6a12c9c6
1 #!/usr/bin/env sh
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}/templatemap_generator.php" "$@"