com gtk/php-gtk: Changes for bundling generated sources.: makedist
[email protected] (David Soria Parra)
| Newsgroups | php.gtk.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 6a3691d22119dab0934dd51f53196ac0f5580f27 Author: Andrei Zmievski <[email protected]> Sat, 10 Jun 2006 20:41:58 +0000 Parents: bf166e44d9762a33c62675d70f7608e823d00d29 Branches: master Link: http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=6a3691d22119dab0934dd51f53196ac0f5580f27 Log: Changes for bundling generated sources. Changed paths: M makedist Diff: 6a3691d22119dab0934dd51f53196ac0f5580f27 diff --git a/makedist b/makedist index c7576b4..a577b84 100755 --- a/makedist +++ b/makedist @@ -55,6 +55,7 @@ ARCHIVE=$MY_OLDPWD/$PKG-$VER.tar # temporary directory used to check out files from CVS DIR=$PKG-$VER +DIRBUILD=$PKG-$VER-build DIRPATH=$MY_OLDPWD/$DIR if test -d "$DIRPATH"; then @@ -79,6 +80,21 @@ $ECHO_N "makedist: exporting tag '$CVSTAG' from '$PHPGTKMOD'...$ECHO_C" cvs -z 9 -d $PHPROOT -Q export -d $DIR -r $CVSTAG $PHPGTKMOD || exit 4 echo "" +cp -r $DIR $DIRBUILD +cd $DIRBUILD || exit 3 + +./buildconf +./configure +make gen-sources +for x in `find ext -name gen\*.\[ch\]`; do + extpath=`dirname $x` + echo "Copying $x to dist dir" + cp $x $DIRPATH/$extpath +done + +cd $MY_OLDPWD +#rm -rf $DIRBUILD + cd $DIR || exit 3 # remove CVS stuff... @@ -91,7 +107,7 @@ gzip -9 $ARCHIVE || exit 5 echo "" $ECHO_N "makedist: cleaning up...$ECHO_C" -rm -rf $DIRPATH || exit 6 +#rm -rf $DIRPATH || exit 6 echo "" exit 0