[FFmpeg-devel] [VOTE] License header consistency

Tomi Ollila tomi.ollila
Mon Aug 18 07:54:20 CEST 2008


On Sun 17 Aug 2008 20:27, Michael Niedermayer <michaelni at gmx.at> writes:

> On Sun, Aug 17, 2008 at 07:22:50PM +0200, Michael Niedermayer wrote:
>
> Also if this vote ends up with a majority of "yes" then someone _please_
> add a pre commit check, this would make manual checking of files before
> svn ci unneeded.

What kind of pre-commit hook ?

Like this?

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
#!/bin/sh 

die () { echo "$@" >&2; exit 1; }

case `head -c <n> | tr -d \\015 | md5sum` in
     <sum-of-gpl-2.1>*) ;;
     <sum-of-lgpl-2.0>*) ;;
     *) die "File '<n>' license header mismatch. ;;
esac 

exit 0
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--


> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB


Tomi




More information about the ffmpeg-devel mailing list