1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Checking "PKGCFG" instead of "Make.global" to see if a plugin uses an old style Makefile

This commit is contained in:
Klaus Schmidinger 2012-12-30 11:18:18 +01:00
parent 26e6ba7dd7
commit 0dd2dcf5a2

View File

@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and # See the main source file 'vdr.c' for copyright information and
# how to reach the author. # how to reach the author.
# #
# $Id: Makefile 2.46 2012/12/29 14:53:37 kls Exp $ # $Id: Makefile 2.47 2012/12/30 11:18:18 kls Exp $
.DELETE_ON_ERROR: .DELETE_ON_ERROR:
@ -194,13 +194,13 @@ plugins: include-dir vdr.pc
noapiv="";\ noapiv="";\
for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\ for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\
echo "*** Plugin $$i:";\ echo "*** Plugin $$i:";\
oldmakefile=`grep "Make.global" "$(PLUGINDIR)/src/$$i/Makefile"`;\
if ! grep -q "\$$(LIBDIR)/.*\$$(APIVERSION)" "$(PLUGINDIR)/src/$$i/Makefile" ; then\ if ! grep -q "\$$(LIBDIR)/.*\$$(APIVERSION)" "$(PLUGINDIR)/src/$$i/Makefile" ; then\
echo "ERROR: plugin $$i doesn't honor APIVERSION - not compiled!";\ echo "ERROR: plugin $$i doesn't honor APIVERSION - not compiled!";\
noapiv="$$noapiv $$i";\ noapiv="$$noapiv $$i";\
continue;\ continue;\
fi;\ fi;\
if [ -n "$$oldmakefile" ]; then\ newmakefile=`grep "PKGCFG" "$(PLUGINDIR)/src/$$i/Makefile"`;\
if [ -z "$$newmakefile" ]; then\
echo "********************************************************************";\ echo "********************************************************************";\
echo "* Your plugin \"$$i\" is using an old Makefile!";\ echo "* Your plugin \"$$i\" is using an old Makefile!";\
echo "* While this currently still works, it is strongly recommended";\ echo "* While this currently still works, it is strongly recommended";\