CHH/php-build — Issue #35: Cannot use pyrus locally
Author: dataich
Created: 2012-01-10 15:51:51+00:00
State: open

First thanks for php-build developement, I love this.

Well, I read share/php-build/plugins.d/pyrus.sh, and $PREFIX/pyrus is used for pyrus installation directory.
https://github.com/CHH/php-build/blob/master/share/php-build/plugins.d/pyrus.sh#L38

But sometimes we'd like to use pyrus locally like
pyrus my_project/vendor set bin_dir my_project/vendor/bin

Temporarily I edit .phpenv/versions/5.3.8/bin/pyrus like below.

```bash
#!/usr/bin/env bash
base_dir_option = "\"/Users/dataich/.phpenv/versions/5.3.8/pyrus\""
if [ -d $1 ]; then #should consider when pyrus command(ex. set help) is passed
base_dir_option = ""
fi

"/Users/dataich/.phpenv/versions/5.3.8/bin/php" -dphar.readonly=0 "/Users/dataich/.phpenv/versions/5.3.8/bin/pyrus.phar" $base_dir $@
```

We'd like to use 1st argument flexibly.