[FFmpeg-devel] [PATCH] configure: define CONFIG_THIS_YEAR at the configure level

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Nov 26 00:41:14 CET 2013



On 26.11.2013, at 00:10, Stefano Sabatini <stefasab at gmail.com> wrote:

> On date Monday 2013-11-25 23:40:41 +0100, Lukasz M encoded:
>> On 25 November 2013 23:33, Stefano Sabatini <stefasab at gmail.com> wrote:
>> 
> [...]
>>> The macro can be shared between configure script and cmdutils.c.
>>> ---
>>> diff --git a/configure b/configure
>>> index 6b0375b..1bf05cb 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -4910,6 +4910,7 @@ cat > $TMPH <<EOF
>>> #define FFMPEG_CONFIG_H
>>> #define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
>>> #define FFMPEG_LICENSE "$(c_escape $license)"
>>> +#define CONFIG_THIS_YEAR 2013
>>> 
>> 
> 
>> "$(date +%Y)"
>> Probably an overkill? :)
> 
> We like to celebrate the new year's eve "by hand" :).
> 
> Now seriously, the problem is that you could have a misconfigured
> system, so the date output can't be always trusted.

Also we in some cases claim copyright for that year.
If no changes were done in some year (yet) that isn't really correct, so doing it manually after the first commits is really the only correct thing.


More information about the ffmpeg-devel mailing list