Skip to content

Commit

Permalink
make it possible to set the re2c and yacc paths via environment varia…
Browse files Browse the repository at this point in the history
…bles for genfiles
  • Loading branch information
Tyrael committed Jun 10, 2015
1 parent 9d5ab7e commit 72b8a30
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion genfiles
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit 72b8a30

Please sign in to comment.