diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-20 23:22:15 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-21 18:49:19 +0400 |
commit | da13fc45b7b2cdac449b18fda0bfdd9d00dcd48f (patch) | |
tree | 02f1feedfdd66f41e301a2f3941a6f60ebc9b14c /misc/composer | |
parent | 2a3fa03749e74847a243df4a780f9062e0945d3c (diff) |
Automate building of xhprof through composer install/update.
Diffstat (limited to 'misc/composer')
-rw-r--r-- | misc/composer/build-xhprof.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/composer/build-xhprof.sh b/misc/composer/build-xhprof.sh new file mode 100644 index 0000000000..2d961e0889 --- /dev/null +++ b/misc/composer/build-xhprof.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +cd vendor/facebook/xhprof/extension + +echo "Building xhprof..." + +git fetch origin pull/33/head:33_pull_request +git merge 33_pull_request + +if ! phpize; then + echo "Fatal error: phpize failed!" + exit 1 +fi + +if ! ./configure; then + echo "Fatal error: configure script failed!" + exit 2 +fi + +if ! make; then + echo "Fatal error: could not build extension (make failed)!" + exit 3 +fi |