-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2082 from phalcon/development
0.12.18
- Loading branch information
Showing
167 changed files
with
4,567 additions
and
3,097 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This file is part of the Zephir. | ||
# | ||
# (c) Zephir Team <[email protected]> | ||
# | ||
# For the full copyright and license information, please view the | ||
# LICENSE file that was distributed with this source code. | ||
|
||
# -e Exit immediately if a command exits with a non-zero status. | ||
# -u Treat unset variables as an error when substituting. | ||
set -eu | ||
|
||
: "${ZEPHIR_PARSER_VERSION:=development}" | ||
PHP_VERSION=$1 | ||
|
||
echo "Install Zephir Parser using version: $ZEPHIR_PARSER_VERSION" | ||
|
||
git clone -b "$ZEPHIR_PARSER_VERSION" \ | ||
--depth 1 \ | ||
-q https://github.com/phalcon/php-zephir-parser \ | ||
php-zephir-parser | ||
|
||
cd php-zephir-parser || exit 1 | ||
|
||
phpize | ||
./configure --with-php-config=/usr/bin/php-config --enable-zephir_parser | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
sudo make install | ||
|
||
echo 'extension="zephir_parser.so"' |\ | ||
sudo tee "/etc/php/$PHP_VERSION/cli/conf.d/zephir_parser.ini" | ||
|
||
php --ri "Zephir Parser" |
Oops, something went wrong.