[SCM] Video extraction utility for YouTube, Google Video and other video sites (Debian packaging) branch, master, updated. upstream/2.1.7-214-g6762190
legatvs
legatvs at gmail.com
Wed Apr 1 14:45:21 UTC 2009
The following commit has been merged in the master branch:
commit a440139ed265bd3f7aac8ff9bdc09a0134c0b8ee
Author: legatvs <legatvs at gmail.com>
Date: Tue Mar 24 13:21:32 2009 +0200
Makefile: Improve module checking with for-loops.
diff --git a/Makefile b/Makefile
index 5cd81d5..24712fe 100644
--- a/Makefile
+++ b/Makefile
@@ -32,26 +32,29 @@ RELEASE := \
.PHONY: all checks
all: checks
+MODULES = \
+ Config::Tiny WWW::Curl HTML::TokeParser BerkeleyDB \
+ URI::Escape Digest::SHA \
+
+MODULES_OPTIONAL = \
+ Clipboard IO::Pager Expect Term::ReadKey
+
checks:
ifeq ($(WITH_CHECK),yes)
- @echo Check for required Perl modules...
- @echo -n URI::Escape ...
- @echo `$(PERL) -MURI::Escape -e "print 'yes'" 2>/dev/null || \
- echo 'no'`
- @echo -n WWW::Curl 4.05+ ...
- @echo `$(PERL) -e "use WWW::Curl 4.05; print 'yes'" 2>/dev/null || \
- echo 'no'`
- @echo -n HTML::TokeParser ...
- @echo `$(PERL) -MHTML::TokeParser -e "print 'yes'" 2>/dev/null || \
- echo 'no'`
- @echo -n Config::Tiny ...
- @echo `$(PERL) -MConfig::Tiny -e "print 'yes'" 2>/dev/null || \
- echo 'no'`
- @echo -n BerkeleyDB ...
- @echo `$(PERL) -MBerkeleyDB -e "print 'yes'" 2>/dev/null || \
- echo 'no'`
+ @echo == Required Perl modules:
+ @for m in $(MODULES); \
+ do \
+ result=`$(PERL) -M$$m -e "print 'yes'" 2>/dev/null || echo no`;\
+ echo "$$m ...$$result"; \
+ done
+ @echo == Optional Perl modules:
+ @for m in $(MODULES_OPTIONAL); \
+ do \
+ result=`$(PERL) -M$$m -e "print 'yes'" 2>/dev/null || echo no`;\
+ echo "$$m ...$$result"; \
+ done
else
- @echo 'Skip checks.'
+ @echo Disable module checks.
endif
.PHONY: install uninstall
--
Video extraction utility for YouTube, Google Video and other video sites (Debian packaging)
More information about the Pkg-perl-cvs-commits
mailing list