[FFmpeg-devel] [VOTE] License header consistency

Diego Biurrun diego
Mon Aug 18 08:17:31 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 
         ^^

> echo "File '<f>' license header mismatch. >&2
                                            ^^^

This is a bashism.

> 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

Where is the code that guesses/detects where the license part of the
file header starts?

Diego




More information about the ffmpeg-devel mailing list