Skip to content

Instantly share code, notes, and snippets.

@kimpepper
Created August 15, 2013 22:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimpepper/6245571 to your computer and use it in GitHub Desktop.
Save kimpepper/6245571 to your computer and use it in GitHub Desktop.
Run phing from a sub-directory
ph() {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/build.xml" ]]; do
path=${path%/*}
done
(cd $path && phing $@)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment