|
From: Heiko Z. <he...@zu...> - 2005-11-03 20:42:31
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, November 2, 2005 05:57, Serge Leschinsky wrote: > Dear Heiko, Bruce > > > I've done it. The intermediate file was created... > This diff is an example only. > > > The syntax of config/perl-ext is the following: > > >> Convert-ASN1 >> DBI >> DBI-DBD-mysql "$CONFIG_MYSQL_CLIENT" = "y" >> "$CONFIG_MYSQL_CLIENT" = "y" Looks good to me. > --- build-1/scripts/perl 2005-10-18 11:42:58.000000000 +0400 > +++ build/scripts/perl 2005-11-02 14:46:32.000000000 +0300 > @@ -65,8 +65,27 @@ > do bzcat $PATCH | patch -p0 || exit 1 done + > +# Do the list with checked dependencies > + if [ -f $DL_DIR/tmp/perl-ext.tmp ]; then > + rm -f $DL_DIR/tmp/perl-ext.tmp > + fi > + > + while read line > + do > + f=`echo $line | cut -d' ' -f1 ` > + s=`echo $line | cut -d' ' -f2- ` > + > + if [ "$f" = "$s" ]; then > + echo $fi >> > $DL_DIR/tmp/perl-ext.tmp > + else > + if `eval test $s` ; then > + echo $f >> > $DL_DIR/tmp/perl-ext.tmp Instead of doing the echo here and then parsing the file in the for statement below, it would make sense to cimbine everything and compile the module right here. > + fi > + fi > + done < $MYDIR/config/perl-ext > > > - for EXT in $(cat $MYDIR/config/perl-ext) > + for EXT in $(cat $DL_DIR/tmp/perl-ext.tmp | grep > -v "^#") > do pushd $DL_DIR/tmp/perl-*/$EXT* echo "******** compiling perl extension > $EXT ********" - -- Regards Heiko Zuerker http://www.devil-linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDanYqUcytMSbs+YURAobQAJ9Swyk9Afg/3Cp0LQJRmL6451MNUQCfeQ0B Z8pty+kvanBmKxoACZPH/os= =5hgt -----END PGP SIGNATURE----- |