mirror of
https://github.com/php/php-src.git
synced 2024-11-30 05:13:56 +08:00
25 lines
607 B
Bash
Executable File
25 lines
607 B
Bash
Executable File
#! /bin/sh
|
|
|
|
STD='make -f Makefile.am LEX="flex -L" YACC="bison -y -l" srcdir=.'
|
|
|
|
(cd Zend && eval "$STD zend_language_parser.c zend_language_scanner.c zend_ini_parser.c zend_ini_scanner.c")
|
|
|
|
files="Makefile main/Makefile ext/standard/Makefile"
|
|
sh build/fastgen.sh . yes no $files
|
|
touch .deps main/.deps ext/standard/libs.mk
|
|
|
|
cat > config_vars.mk <<EOF
|
|
LEX=flex -L
|
|
YACC=bison -y -l
|
|
EOF
|
|
|
|
(cd ext/standard && make parsedate.c)
|
|
|
|
rm config_vars.mk .deps ext/standard/libs.mk $files
|
|
|
|
for f in ext/standard/url_scanner_ex.c ext/standard/var_unserializer.c; do
|
|
cp $f $f.orig
|
|
grep -v '#line ' $f.orig > $f
|
|
done
|
|
|