[vdr] [ANNOUNCE] VDR developer version 1.3.47
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sat Apr 22 12:08:13 CEST 2006
syrius.ml at no-log.org wrote:
> Udo Richter <udo_richter at gmx.de> writes:
>
> Hi !
>
>
>>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
>
>
> grep|awk|sed in one sed:
> sed -ne '/define VDRVERSION/ { s/^.*"\(.*\)".*$/\1/; p }' config.h
I like this!
If you'd like to be mentioned in VDR/CONTRIBUTORS, please provide
your real name and email address.
Klaus
More information about the vdr
mailing list