]> granicus.if.org Git - php/commitdiff
Generate files for distribution (also adds parsedate.c)
authorSascha Schumann <sas@php.net>
Tue, 5 Oct 1999 14:12:43 +0000 (14:12 +0000)
committerSascha Schumann <sas@php.net>
Tue, 5 Oct 1999 14:12:43 +0000 (14:12 +0000)
genfiles [new file with mode: 0755]
makedist

diff --git a/genfiles b/genfiles
new file mode 100755 (executable)
index 0000000..c83dd82
--- /dev/null
+++ b/genfiles
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+STD='make -f Makefile.am LEX=flex YACC="bison -y" srcdir=.'
+
+(cd libzend && eval "$STD zend-parser.c zend-scanner.c zend-scanner-cc.cc")
+eval "$STD configuration-parser.c configuration-scanner.c"
+(cd ext/standard && eval "$STD parsedate.c")
index 181b44d207ad4e2449f4550194d131d325a17271..42695182bf84c493fdfc1951261e954d4629b768 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -108,12 +108,9 @@ done
 # to install
 set -x
 ./buildconf --copy
-cd libzend
-bison -p zend -d zend-parser.y -o zend-parser.c
-flex -Pzend -ozend-scanner.c -i zend-scanner.l
-cd ..
-bison -p cfg -d configuration-parser.y -o configuration-parser.c
-flex -Pcfg -oconfiguration-scanner.c -i configuration-scanner.l
+
+./genfiles
+
 echo "/* Dummy File */" > ext/bcmath/number.c
 echo "/* Dummy File */" > ext/bcmath/number.h