diff options
author | Stig Bakken <ssb@php.net> | 1999-11-08 16:17:53 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 1999-11-08 16:17:53 +0000 |
commit | ecf83739f43e8e97822bb0faecc34e1db3e05e8a (patch) | |
tree | 339a226c5f19bc22c318db6fc351ddb0ba0b1663 /makedist | |
parent | 9542dbaf54d16629019b03fa429987fa6f5e1346 (diff) | |
download | php-git-ecf83739f43e8e97822bb0faecc34e1db3e05e8a.tar.gz |
Cleaned up makedist a bit more.
# Also changed 4.0B3-RC2 to 4.0b3-RC2. I don't see why we should start
# using capital letters in 4.0.
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 47 |
1 files changed, 24 insertions, 23 deletions
@@ -55,16 +55,17 @@ MY_OLDPWD=`pwd` ARCHIVE=$MY_OLDPWD/$PKG-$VER.tar.gz # temporary directory used to check out files from CVS -TMPDIR=$MY_OLDPWD/cvstmp-$PKG-$VER +DIR=$PKG-$VER +DIRPATH=$MY_OLDPWD/$DIR -if test -d "$TMPDIR"; then - echo "Temporary directory $TMPDIR" +if test -d "$DIRPATH"; then + echo "The directory $DIR" echo "already exists, rename or remove it and run makedist again." exit 1 fi # version part of the CVS release tag -CVSVER=`echo $VER | sed -e 's/\./_/g'` +CVSVER=`echo $VER | sed -e 's/[\.\-]/_/g'` # CVS release tag CVSTAG=${PKG}_$CVSVER @@ -76,17 +77,17 @@ 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 +if test ! -d $DIRPATH; then + mkdir -p $DIRPATH || exit 2 fi -cd $TMPDIR || exit 3 +#cd $DIRPATH || exit 3 $ECHO_N "makedist: exporting tag '$CVSTAG' from '$CVSMOD'...$ECHO_C" -cvs -Q export -r $CVSTAG $CVSMOD || exit 4 +cvs -Q export -d $DIR -r $CVSTAG $CVSMOD || exit 4 echo "" -cd $CVSMOD || exit 5 +cd $DIR || exit 5 # Check out Zend $ECHO_N "makedist: exporting tag '$CVSTAG' from '$ZENDMOD'...$ECHO_C" @@ -121,26 +122,26 @@ echo "/* Dummy File */" > ext/bcmath/number.c echo "/* Dummy File */" > ext/bcmath/number.h #perl -i -p -e 's/\r\n/\n/' *.dsw *.dsp -set +x - -INC="$INC \ -configuration-scanner.c \ -configuration-parser.c configuration-parser.h \ -acconfig.h aclocal.m4 missing mkinstalldirs \ -ltconfig ltmain.sh config.sub config.guess php_config.h.in \ -configure install-sh Makefile.in" - - -mkdir $PKG-$VER || exit 6 -mv $INC $PKG-$VER || exit 7 +#set +x +# +#INC="$INC \ +#configuration-scanner.c \ +#configuration-parser.c configuration-parser.h \ +#acconfig.h aclocal.m4 missing mkinstalldirs \ +#ltconfig ltmain.sh config.sub config.guess php_config.h.in \ +#configure install-sh Makefile.in" +# +# +#mkdir $PKG-$VER || exit 6 +#mv $INC $PKG-$VER || exit 7 +cd $MY_OLDPWD $ECHO_N "makedist: making gzipped tar archive...$ECHO_C" tar czf $ARCHIVE $PKG-$VER || exit 8 echo "" $ECHO_N "makedist: cleaning up...$ECHO_C" -cd $MY_OLDPWD -rm -rf $TMPDIR || exit 9 +rm -rf $DIRPATH || exit 9 echo "" exit 0 |