summaryrefslogtreecommitdiff
path: root/genfiles
blob: 8c733534e70a951e33c3ab121e21fc01c5eb350d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /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

f=ext/standard/url_scanner_ex.c
cp $f $f.orig
grep -v '#line ' $f.orig > $f