|
From: Serge L. <sma...@us...> - 2005-11-15 15:44:46
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31705/scripts Modified Files: Tag: rel-1-2-patches perl Log Message: - attempt to add dependencies for perl modules Index: perl =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/perl,v retrieving revision 1.29.2.5 retrieving revision 1.29.2.6 diff -u -d -r1.29.2.5 -r1.29.2.6 --- perl 28 Oct 2005 12:59:51 -0000 1.29.2.5 +++ perl 15 Nov 2005 15:44:38 -0000 1.29.2.6 @@ -57,17 +57,34 @@ do bzcat $PATCH | patch -p0 || exit 1 done - - for EXT in $(cat $MYDIR/config/perl-ext | grep -v "^#") +# Check dependensies + while read line 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 + do_it=0 + EXT=`echo $line | cut -d' ' -f1 ` + CONDITION=`echo $line | cut -d' ' -f2- ` + + if echo $EXT | grep -v "^#" > /dev/null 2>&1; then + if [ "$EXT" = "$CONDITION" ]; then + do_it=1 + else + if `eval test $CONDITION` ; then + do_it=1 + fi + fi + if [ "$do_it" == "1" ]; then + 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 + fi + fi + + done < $MYDIR/config/perl-ext + exit 0 fi ;; |