summaryrefslogtreecommitdiff
path: root/genfiles
blob: c20115f2eb4d6ef0b6a2b0b64d8bccda6aa7316c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

STD='make -f Makefile.frag LEX="flex -L" YACC="bison -y -l" srcdir=Zend builddir=Zend'

(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")

set -x
bison -d -y -l ext/standard/parsedate.y -o ext/standard/parsedate.c

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