xref: /PHP-5.5/genfiles (revision 72b8a30c)
1693207a8SSascha Schumann#! /bin/sh
2693207a8SSascha Schumann
3*72b8a30cSFerenc Kovacsif [ -z $YACC ]; then
4*72b8a30cSFerenc Kovacs  YACC="bison"
5*72b8a30cSFerenc Kovacsfi
6*72b8a30cSFerenc KovacsYACC="$YACC -y -l"
7*72b8a30cSFerenc Kovacs
8*72b8a30cSFerenc Kovacsif [ -z $RE2C ]; then
9*72b8a30cSFerenc Kovacs  RE2C="re2c"
10*72b8a30cSFerenc Kovacsfi
11*72b8a30cSFerenc Kovacs
12*72b8a30cSFerenc KovacsSTD="make -f Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=Zend builddir=Zend top_srcdir=."
13693207a8SSascha Schumann
14779c11afSAndi Gutmans(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
157070605aSSascha Schumann
1613a6426bSAndi Gutmansset -x
17d485e7fcSfoobar
18b947d6b0SfoobarCLEANUP_FILES=" \
19b947d6b0Sfoobar  ext/pdo/pdo_sql_parser.c \
20b947d6b0Sfoobar  ext/date/lib/parse_date.c \
21b947d6b0Sfoobar  ext/standard/url_scanner_ex.c \
22b947d6b0Sfoobar  ext/standard/var_unserializer.c \
23b947d6b0Sfoobar"
24b947d6b0Sfoobar
25b947d6b0Sfoobarfor f in $CLEANUP_FILES; do
26afb022b7SSascha Schumann  cp $f $f.orig
27afb022b7SSascha Schumann  grep -v '#line ' $f.orig > $f
287bd5199cSDerick Rethansdone
297bd5199cSDerick Rethans
30