diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-09-03 03:00:49 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-09-03 03:00:49 +0400 |
commit | b09061afd43225a6012b8724d7b5903b484362f2 (patch) | |
tree | 71975dac41eaf942f39365a922b05f20f6f2e24d /misc/composer | |
parent | 5597c91bb336b4ea0a9dc46abfb9d2adbee233c9 (diff) |
Skip xhprof building if phpize or make are missing.
Diffstat (limited to 'misc/composer')
-rwxr-xr-x | misc/composer/build-xhprof.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/composer/build-xhprof.sh b/misc/composer/build-xhprof.sh index f4a9999678..f1f91e8217 100755 --- a/misc/composer/build-xhprof.sh +++ b/misc/composer/build-xhprof.sh @@ -1,5 +1,16 @@ #!/bin/bash +if ! type phpize 2> /dev/null; then + echo "phpize missing, skipping build" + echo "If you installed PHP via Aptitude, you can install phpize w/ 'sudo apt-get install php5-dev'" + exit +fi + +if ! type make 2> /dev/null; then + echo "make missing, skipping build" + exit +fi + mkdir -p tmp/xhprof-logs cd vendor/facebook/xhprof/extension |