-
-
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.
- Loading branch information
1 parent
0decc0d
commit 94091ed
Showing
15 changed files
with
261 additions
and
16 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
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
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
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
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 |
---|---|---|
@@ -1,20 +1,45 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This file was generated automatically by Zephir. | ||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | ||
# | ||
# (c) Zephir Team <[email protected]> | ||
# | ||
# For the full copyright and license information, please view | ||
# the LICENSE file that was distributed with this source code. | ||
|
||
export CC="gcc" | ||
export CFLAGS="-O2 -Wall -fvisibility=hidden -flto -DZEPHIR_RELEASE=1" | ||
|
||
phpize_bin=$(which phpize 2> /dev/null) | ||
IN_DOCKER=0 | ||
|
||
if [ -z $(which sudo 2> /dev/null) ]; then | ||
alias sudo="" | ||
if [[ -f /proc/1/cgroup ]] | ||
then | ||
if [[ -f /.dockerenv ]] || grep -Eq '/(lxc|docker)/[[:xdigit:]]{64}' /proc/1/cgroup | ||
then | ||
IN_DOCKER=1 | ||
fi | ||
fi | ||
|
||
phpize="$(command -v phpize 2> /dev/null)" | ||
|
||
sudo="" | ||
test "$IN_DOCKER" -eq 0 && sudo="$(command -v sudo 2> /dev/null)" | ||
|
||
if [ -f Makefile ]; then | ||
sudo make -s clean | ||
sudo ${phpize_bin} --silent --clean | ||
$sudo make -s clean | ||
$sudo "${phpize}" --silent --clean | ||
fi | ||
|
||
${phpize_bin} --silent | ||
${phpize} --silent | ||
|
||
ZEPHIR_CFLAGS="" | ||
ZEPHIR_LDFLAGS="" | ||
|
||
test -n "$CFLAGS" && ZEPHIR_CFLAGS="CFLAGS=\"$CFLAGS\"" | ||
test -n "$LDFLAGS" && ZEPHIR_LDFLAGS="LDFLAGS=\"$LDFLAGS\"" | ||
|
||
/configure --silent --enable-test "$ZEPHIR_CFLAGS" "$ZEPHIR_LDFLAGS" | ||
|
||
./configure --silent --enable-test | ||
make -s && sudo make -s install | ||
make -s | ||
$sudo make -s install |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.