[FFmpeg-devel] [VOTE] License header consistency

Michael Niedermayer michaelni
Mon Aug 18 13:14:45 CEST 2008


On Mon, Aug 18, 2008 at 09:05:57AM +0300, Tomi Ollila wrote:
> On Mon 18 Aug 2008 08:54, Tomi Ollila <tomi.ollila at guru.guru-group.fi> writes:
> 
> >
> > What kind of pre-commit hook ?
> >
> > Like this?
> >
> > --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
> heavily buggy version deleted 
> > --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
> 
> #!/bin/sh 
> 
> case `head -n <l1> <f> | tr -d \\015 | sha1sum` in <sum-of-gpl-2.1>*) exit 0 ;; esac
> case `head -n <l2> <f> | tr -d \\015 | sha1sum` in <sum-of-lgpl-2.0>*) exit 0 ;; esac
> 
> echo "File '<f>' license header mismatch. >&2
> exit 1

The license headers look like:
/*
 * copyright (c) 2001 Fabrice Bellard
 *
 * This file is part of FFmpeg.
...
the first line will likely lead to sha1 mismatches


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080818/09513e9b/attachment.pgp>



More information about the ffmpeg-devel mailing list