|
From: Heiko Z. <he...@zu...> - 2005-11-04 14:46:32
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey,
On Fri, November 4, 2005 08:39, Serge Leschinsky wrote:
> Dear Heiko,
>
>
> Thursday, November 3, 2005, 11:42:18 PM, you wrote:
>
>
>
>>> + 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.
> There are 2 places for the compile code. Code doubling is bad form and
> therefore I should write a function... But in this case I have to save
> parameters ($1) from parent script. Or haven't? Am I right ? Could you
> please advise me a write way?
There's actually only 1 place for compiling the perl extensions:
for EXT in $(cat $MYDIR/config/perl-ext | grep -v
"^#")
do
pushd $WORKDIR/perl-ext/$EXT*
echo "******** compiling perl extension
$EXT ********"
yes "" | perl Makefile.PL PREFIX=/usr ||
exit 1
strip_debug
make install || exit 1
popd
done
- --
Regards
Heiko Zuerker
http://www.devil-linux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDa3Q6UcytMSbs+YURArEDAJ9JrBI+wuOg2oK7nHOCRFn1UZmEgwCgkLH/
r32iG6BWtE9cdyGeYl/17z8=
=WfPq
-----END PGP SIGNATURE-----
|