summaryrefslogtreecommitdiff
path: root/genfiles
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2015-06-11 00:13:08 +0200
committerFerenc Kovacs <tyrael@php.net>2015-06-11 00:13:08 +0200
commit72b8a30c1a9c4c5376461ade245700c6977f636f (patch)
treead5fbd872a9a7e506e70b50e7d4f55f2e1f1379e /genfiles
parent9d5ab7e22f7d8af437e95d2bc5ac6e2c46adfa4c (diff)
downloadphp-git-72b8a30c1a9c4c5376461ade245700c6977f636f.tar.gz
make it possible to set the re2c and yacc paths via environment variables for genfiles
Diffstat (limited to 'genfiles')
-rwxr-xr-xgenfiles11
1 files changed, 10 insertions, 1 deletions
diff --git a/genfiles b/genfiles
index 8a362c1e31..516b3316fb 100755
--- a/genfiles
+++ b/genfiles
@@ -1,6 +1,15 @@
#! /bin/sh
-STD='make -f Makefile.frag RE2C="re2c" RE2C_FLAGS="-i" YACC="bison -y -l" srcdir=Zend builddir=Zend top_srcdir=.'
+if [ -z $YACC ]; then
+ YACC="bison"
+fi
+YACC="$YACC -y -l"
+
+if [ -z $RE2C ]; then
+ RE2C="re2c"
+fi
+
+STD="make -f Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=Zend builddir=Zend top_srcdir=."
(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")