Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-09-03 03:00:49 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-09-03 03:00:49 +0400
commitb09061afd43225a6012b8724d7b5903b484362f2 (patch)
tree71975dac41eaf942f39365a922b05f20f6f2e24d /misc/composer
parent5597c91bb336b4ea0a9dc46abfb9d2adbee233c9 (diff)
Skip xhprof building if phpize or make are missing.
Diffstat (limited to 'misc/composer')
-rwxr-xr-xmisc/composer/build-xhprof.sh11
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