com php-src: make it possible to set the re2c and yacc paths via environment variables for genfiles: genfiles

From: Date: Wed, 10 Jun 2015 22:13:08 +0000
Subject: com php-src: make it possible to set the re2c and yacc paths via environment variables for genfiles: genfiles
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87203@lists.php.net to get a copy of this message
Commit: 72b8a30c1a9c4c5376461ade245700c6977f636f Author: Ferenc Kovacs <tyrael@php.net> Thu, 11 Jun 2015 00:13:08 +0200 Parents: 9d5ab7e22f7d8af437e95d2bc5ac6e2c46adfa4c Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=72b8a30c1a9c4c5376461ade245700c6977f636f Log: make it possible to set the re2c and yacc paths via environment variables for genfiles Changed paths: M genfiles Diff: diff --git a/genfiles b/genfiles index 8a362c1..516b331 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")

« previous php.cvs (#87203) next »