diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-21 04:01:30 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-08-21 18:49:19 +0400 |
commit | e0f9bc511493aa97c8bd7ccdd5ef536fbf255a93 (patch) | |
tree | a94c848e683f19bba5f498deb6100a641602230c /misc/composer | |
parent | a3f70bb5b0454591f851bbc1200f1818e0e0cdbe (diff) |
Clean output of xhprof build script.
Diffstat (limited to 'misc/composer')
-rwxr-xr-x[-rw-r--r--] | misc/composer/build-xhprof.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/misc/composer/build-xhprof.sh b/misc/composer/build-xhprof.sh index 2d961e0889..46637f2bbb 100644..100755 --- a/misc/composer/build-xhprof.sh +++ b/misc/composer/build-xhprof.sh @@ -1,5 +1,7 @@ #!/bin/bash +mkdir -p tmp/xhprof-logs + cd vendor/facebook/xhprof/extension echo "Building xhprof..." @@ -7,17 +9,22 @@ 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!" +echo "Running phpize..." +if ! phpize &> ../../../../tmp/xhprof-logs/phpize.log; then + echo "Fatal error: phpize failed! View tmp/xhprof-logs/phpize.log for more info." exit 1 fi -if ! ./configure; then - echo "Fatal error: configure script failed!" +echo "Running configure script..." +if ! ./configure &> ../../../../tmp/xhprof-logs/configure.log; then + echo "Fatal error: configure script failed! View tmp/xhprof-logs/configure.log for more info." exit 2 fi -if ! make; then - echo "Fatal error: could not build extension (make failed)!" +echo "Building..." +if ! make &> ../../../../tmp/xhprof-logs/make.log; then + echo "Fatal error: could not build extension (make failed)! View tmp/xhprof-logs/make.log for more info." exit 3 fi + +echo "Done."
\ No newline at end of file |