diff options
author | Ferenc Kovacs <tyrael@php.net> | 2015-06-11 00:13:08 +0200 |
---|---|---|
committer | Ferenc Kovacs <tyrael@php.net> | 2015-06-11 00:13:08 +0200 |
commit | 72b8a30c1a9c4c5376461ade245700c6977f636f (patch) | |
tree | ad5fbd872a9a7e506e70b50e7d4f55f2e1f1379e /genfiles | |
parent | 9d5ab7e22f7d8af437e95d2bc5ac6e2c46adfa4c (diff) | |
download | php-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-x | genfiles | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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") |