From 9bb36e9cfe875094bb9ba8d7f9733ae346ba1ec8 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 17 Jul 1999 11:22:17 +0000 Subject: [PATCH] Some work on makedist --- buildconf | 2 +- makedist | 36 ++++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/buildconf b/buildconf index 03c25ffc80..77b59e4ef1 100755 --- a/buildconf +++ b/buildconf @@ -16,7 +16,7 @@ fi autoheader -automake --add-missing --include-deps +automake --add-missing --include-deps -copy mv configure configure.old 2>/dev/null autoconf diff --git a/makedist b/makedist index 889cad6553..96e6b89573 100755 --- a/makedist +++ b/makedist @@ -29,6 +29,8 @@ CVSROOT=:pserver:cvsread@cvs.php.net:/repository export CVSROOT +ZENDROOT=:pserver:cvsread@cvs.zend.com:/repository +export ZENDROOT if echo '\c' | grep -s c >/dev/null 2>&1 then @@ -61,8 +63,13 @@ CVSVER=`echo $VER | sed -e 's/\./_/g'` # CVS release tag CVSTAG=${PKG}_$CVSVER -# should become "php3" +# should become "php4" CVSMOD=`cat CVS/Repository | sed -e 's!^/[^/]*/!!'` +# should become "libzend" +ZENDMOD=`cat libzend/CVS/Repository | sed -e 's!^/[^/]*/!!'` +# should become "TSRM" +TSRMMOD=`cat TSRM/CVS/Repository | sed -e 's!^/[^/]*/!!'` + if test ! -d $TMPDIR; then mkdir -p $TMPDIR || exit 2 @@ -76,6 +83,15 @@ echo "" cd $CVSMOD || exit 5 +# Check out Zend +$ECHO_N "makedist: exporting tag '$CVSTAG' from '$ZENDMOD'...$ECHO_C" +cvs -d $ZENDROOT -Q export -r $CVSTAG $ZENDMOD || exit 4 + +# Check out TSRM +$ECHO_N "makedist: exporting tag '$CVSTAG' from '$TSRMMOD'...$ECHO_C" +cvs -d $ZENDROOT -Q export -r $CVSTAG $TSRMMOD || exit 4 + + INC="" # remove CVS stuff... @@ -91,24 +107,20 @@ done # generate some files so people don't need bison, flex and autoconf # to install set -x -autoconf -bison -p php -v -d language-parser.y -flex -Pphp -olanguage-scanner.c -i language-scanner.lex -bison -p cfg -v -d configuration-parser.y -flex -Pcfg -oconfiguration-scanner.c -i configuration-scanner.lex -cd convertor -flex -i -Pphp -olanguage-scanner.c language-scanner.lex -bison -p php -v -d language-parser.y +./buildconf +cd libzend +bison -p zend -v -d zend-parser.y -o zend-parser.c +flex -Pzend -ozend-scanner.c -i zend-scanner.l cd .. +bison -p cfg -v -d configuration-parser.y -o configuration-parser.c +flex -Pcfg -oconfiguration-scanner.c -i configuration-scanner.l #perl -i -p -e 's/\r\n/\n/' *.dsw *.dsp set +x INC="$INC \ configuration-scanner.c \ -configuration-parser.tab.c configuration-parser.tab.h \ -language-scanner.c \ -language-parser.tab.c language-parser.tab.h \ +configuration-parser.c configuration-parser.h \ configure" mkdir $PKG-$VER || exit 6 -- 2.40.0