1999-10-05 22:12:43 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
2015-06-11 06:13:08 +08:00
|
|
|
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=."
|
1999-10-05 22:12:43 +08:00
|
|
|
|
2002-05-27 05:05:38 +08:00
|
|
|
(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
|
1999-12-30 11:13:21 +08:00
|
|
|
|
2002-05-27 21:36:43 +08:00
|
|
|
set -x
|
2000-10-20 09:58:00 +08:00
|
|
|
|
2005-11-09 04:21:35 +08:00
|
|
|
CLEANUP_FILES=" \
|
|
|
|
ext/pdo/pdo_sql_parser.c \
|
|
|
|
ext/date/lib/parse_date.c \
|
|
|
|
ext/standard/url_scanner_ex.c \
|
|
|
|
ext/standard/var_unserializer.c \
|
|
|
|
"
|
|
|
|
|
|
|
|
for f in $CLEANUP_FILES; do
|
2002-01-04 21:10:26 +08:00
|
|
|
cp $f $f.orig
|
|
|
|
grep -v '#line ' $f.orig > $f
|
2002-02-19 23:58:31 +08:00
|
|
|
done
|