#!/usr/bin/perl -w # SPDX-License-Identifier: BSD-3-Clause # Copyright 2020, Intel Corporation use Digest::MD5 "md5_hex"; my $BSD3 = <; close F; next unless /Copyright.*(Microsoft Corporation|FUJITSU)/; s/^ \*//mg; s/^#//mg; if (index($_, $BSD3) == -1) { $err = 1; print STDERR "Outside copyright but no/wrong license text in $f\n"; } } exit $err