xref: /PHP-5.5/genfiles (revision 72b8a30c)
1#! /bin/sh
2
3if [ -z $YACC ]; then
4  YACC="bison"
5fi
6YACC="$YACC -y -l"
7
8if [ -z $RE2C ]; then
9  RE2C="re2c"
10fi
11
12STD="make -f Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=Zend builddir=Zend top_srcdir=."
13
14(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
15
16set -x
17
18CLEANUP_FILES=" \
19  ext/pdo/pdo_sql_parser.c \
20  ext/date/lib/parse_date.c \
21  ext/standard/url_scanner_ex.c \
22  ext/standard/var_unserializer.c \
23"
24
25for f in $CLEANUP_FILES; do
26  cp $f $f.orig
27  grep -v '#line ' $f.orig > $f
28done
29
30