Created
June 4, 2014 11:20
-
-
Save nojimage/5ff1d2069fa4015b5d48 to your computer and use it in GitHub Desktop.
php-timecop を phpenv環境に一気にインストールしちゃうぜ。的な
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for v in $(phpenv versions | cut -c 3-8); | |
do | |
phpenv local $v && php --ri timecop || (phpize && make clean && ./configure && make && make install) | |
if [ -f $(php-config --extension-dir)/timecop.so ] ; then | |
inifile=$(php --ini | grep "Scan for additional .ini files" | cut -d : -f 2)/timecop.ini | |
test -f $inifile || echo "extension=timecop.so" > $inifile | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment