Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv445/scripts
Modified Files:
perl
Log Message:
- attempt to add dependencies checking for perl modules
Index: perl
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/perl,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- perl 29 Sep 2005 16:07:22 -0000 1.45
+++ perl 15 Nov 2005 15:51:30 -0000 1.46
@@ -57,17 +57,34 @@
do
bzcat $PATCH | patch -p0 || exit 1
done
-
- for EXT in $(cat $MYDIR/config/perl-ext)
+# Check dependencies
+ 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
;;
|