[FFmpeg-devel] [VOTE] License header consistency

Tomi Ollila tomi.ollila
Tue Aug 19 10:32:32 CEST 2008


On Mon 18 Aug 2008 09:17, Diego Biurrun <diego at biurrun.de> writes:

> On Mon, Aug 18, 2008 at 09:05:57AM +0300, Tomi Ollila wrote:
>> 
>
>> 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?

maybe something like this, if this is still relevant.

from first '^.*BLOCK BEGIN.*$' to first '^.*BLOCK END.*$' on a file. 

#!/bin/sh

case `sed '1,/BLOCK BEGIN/d; /BLOCK END/,$d; s/ *$//' <f> | tr -d \\r | sha1sum` in
	<sum-of-gpl-2.1>*) ;;
	<sum-of-lgpl-2.0>*) ;;
	...*) ;;
	*) echo "File '<f>' license header mismatch." >&2; exit 1 ;;
esac

>
> Diego

Tomi




More information about the ffmpeg-devel mailing list