[FFmpeg-devel] [VOTE] License header consistency

Tomi Ollila tomi.ollila
Mon Aug 18 08:05:57 CEST 2008


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


> Tomi

Tomi




More information about the ffmpeg-devel mailing list