Skip to content

Commit 72b8a30

Browse files
committed
make it possible to set the re2c and yacc paths via environment variables for genfiles
1 parent 9d5ab7e commit 72b8a30

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

genfiles

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#! /bin/sh
22

3-
STD='make -f Makefile.frag RE2C="re2c" RE2C_FLAGS="-i" YACC="bison -y -l" srcdir=Zend builddir=Zend top_srcdir=.'
3+
if [ -z $YACC ]; then
4+
YACC="bison"
5+
fi
6+
YACC="$YACC -y -l"
7+
8+
if [ -z $RE2C ]; then
9+
RE2C="re2c"
10+
fi
11+
12+
STD="make -f Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=Zend builddir=Zend top_srcdir=."
413

514
(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
615

0 commit comments

Comments
 (0)