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-08-20 23:22:15 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-08-21 18:49:19 +0400
commitda13fc45b7b2cdac449b18fda0bfdd9d00dcd48f (patch)
tree02f1feedfdd66f41e301a2f3941a6f60ebc9b14c /misc/composer
parent2a3fa03749e74847a243df4a780f9062e0945d3c (diff)
Automate building of xhprof through composer install/update.
Diffstat (limited to 'misc/composer')
-rw-r--r--misc/composer/build-xhprof.sh23
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