r34630 - /trunk/libwww-search-perl/debian/make-module.sh
ryan52-guest at users.alioth.debian.org
ryan52-guest at users.alioth.debian.org
Sat May 2 04:01:25 UTC 2009
Author: ryan52-guest
Date: Sat May 2 04:01:19 2009
New Revision: 34630
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=34630
Log:
use dh7 stuff instead, simplifying this a lot
Modified:
trunk/libwww-search-perl/debian/make-module.sh
Modified: trunk/libwww-search-perl/debian/make-module.sh
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-search-perl/debian/make-module.sh?rev=34630&op=diff
==============================================================================
--- trunk/libwww-search-perl/debian/make-module.sh (original)
+++ trunk/libwww-search-perl/debian/make-module.sh Sat May 2 04:01:19 2009
@@ -41,7 +41,16 @@
cd ..
fi
-if [ "$1" = "configure" ]; then
+if [ ! -f ../../../runtests ]; then
+ if [ -z "$DEB_BUILD_OPTIONS" ]; then
+ DEB_BUILD_OPTIONS=nocheck
+ else
+ DEB_BUILD_OPTIONS="$DEB_BUILD_OPTIONS,nocheck"
+ fi
+ export DEB_BUILD_OPTIONS
+fi
+
+if [ "$1" = "configure" -o "$1" = "install" -o "$1" = "test" -o "$1" = "build" ]; then
cd build-area
for dir in *
do
@@ -50,12 +59,9 @@
for module in *
do
cd $module
- if [ -r Build.PL ];
- then
- $PERL Build.PL installdirs=vendor
- else
- PERL5LIB=$PERL5LIB $PERL Makefile.PL INSTALLDIRS=vendor --skipdeps
- fi
+ ln -sf ../../../debian
+ dh_auto_$1 || exit 1
+ rm debian
cd ..
done
cd ..
@@ -63,76 +69,3 @@
done
cd ..
fi
-
-if [ "$1" = "install" ]; then
- cd build-area
- for dir in *
- do
- if [ -d $dir ]; then
- cd $dir
- for module in *
- do
- cd $module
- if [ -r Build.PL ];
- then
- $PERL Build install destdir=$DESTDIR
- else
- $MAKE install DESTDIR=$DESTDIR
- fi
- cd ..
- done
- cd ..
- fi
- done
-cd ..
-fi
-
-if [ "$1" = "test" ]; then
- cd build-area
- for dir in *
- do
- if [ -d $dir ]; then
- cd $dir
- for module in *
- do
- cd $module
- if [ -r Build.PL ];
- then
- if [ -f ../../../runtests ]; then
- $PERL Build test || { echo "TESTS FAILED"; exit 1; }
- fi
- else
- if [ -f ../../../runtests ]; then
- PERL5LIB=$PERL5LIB $MAKE test || { echo "TESTS FAILED"; exit 1; }
- fi
- fi
- cd ..
- done
- cd ..
- fi
- done
-cd ..
-fi
-
-if [ "$1" = "build" ]; then
- cd build-area
- for dir in *
- do
- if [ -d $dir ]; then
- cd $dir
- for module in *
- do
- cd $module
- if [ -r Build.PL ];
- then
- $PERL Build
- else
- PERL5LIB=$PERL5LIB $MAKE
- fi
- cd ..
- done
- cd ..
- fi
- done
-cd ..
-fi
More information about the Pkg-perl-cvs-commits
mailing list