commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / vendor / phpseclib / phpseclib / travis / install-php-extensions.sh
1 #!/bin/bash
2 #
3 # This file is part of the phpseclib project.
4 #
5 # (c) Andreas Fischer <bantu@phpbb.com>
6 #
7 # For the full copyright and license information, please view the LICENSE
8 # file that was distributed with this source code.
9 #
10 set -e
11
12 function install_php_extension
13 {
14 cd "$1"
15 phpize
16 ./configure
17 make
18 make install
19 cd ..
20 echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
21 }
22
23 # runkit
24 if [ "$TRAVIS_PHP_VERSION" == "5.6" ]
25 then
26 git clone https://github.com/adrianguenter/runkit.git
27 else
28 git clone https://github.com/zenovich/runkit.git
29 fi
30 install_php_extension 'runkit'