[ANNOUNCE] VDR developer version 1.3.47

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Klaus Schmidinger wrote:
> - The new APIVERSION (see config.h) now allows existing compiled plugins to be
>   used with newer versions of VDR, as long as there have been no changes to the
>   VDR header files since the last APIVERSION. Existing plugins' Makefiles should
>   have all references to VDRVERSION changed to APIVERSION, like this:
> 
>   -VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | 
> awk '{ print $$3 }' | sed -e 's/"//g')
>   +APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | 
> awk '{ print $$3 }' | sed -e 's/"//g')


For backwards compatibility, I suggest this:

VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk 
'{ print $$3 }' | sed -e 's/"//g')
APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk 
'{ print $$3 }' | sed -e 's/"//g')
ifeq ($(strip $(APIVERSION)),)
   APIVERSION = $(VDRVERSION)
endif

(and the @cp $@ $(LIBDIR)/$@.$(APIVERSION) like Klaus suggested.)

That way all pre-1.3.47 versions will continue to use VDRVERSION, and 
all newer versions will use APIVERSION.


Cheers,

Udo



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux