From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EE4F0A0542; Fri, 7 Feb 2020 18:52:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 454431BFFB; Fri, 7 Feb 2020 18:52:28 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by dpdk.org (Postfix) with ESMTP id D91FF1BF95 for ; Fri, 7 Feb 2020 18:52:26 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id 4so123055pfz.9 for ; Fri, 07 Feb 2020 09:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OiMWZz1GaD+J0eBsJqEKAIIGn6X/oSrs+gxMgbHY0cQ=; b=zZKpjCLSm2v5Tfr/KFVe/UqiRHSzZGEZkP7ofT9e7R/SLLzxAD1zKV/6m59uKW1jLJ olW3U7NMtetd2+vwuZZLCKsKuNyILx7SmMQiRx5r0CEeLYHn8pCOiTTTACL0uH6MQiF0 kEqrCh/oV61o5nXgRumzQTV+/V6g/q5noViChoF6qQo1ejIHwaR9Yd21j4zdHKeC2C4/ to7ogUizm0/4+UAcoByeguNH8ZAcHrvwtgTIOmU9KhfFXKhnFtO4o7trLUXrmlRNDlEA VmIVl0wyiV902HCxwYU8x3tkjujdimzUoEUH/s1nxdG+qE2moxdfzuEvZe72lA8zmwuU 9/DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OiMWZz1GaD+J0eBsJqEKAIIGn6X/oSrs+gxMgbHY0cQ=; b=MtiGW2PwVBeNuarAqge86HncJA/2SyrUdYhpCZhdckLoTa6bfimkMXmSRHfKhdqI5w STAaqRqMc8iSjSBf1kD4DOnRksaSXcVA7LMPDsfN5vWnFqwjUg7ywX6ba4/h8uSSXZ1G cnZAGG/71CQAX4Q8wzRjKm4w78D2sQ3J+2RjmfL+987TeThzrObrLHsPigOfdGZtA9z5 ExJJKFUDBcrhjgBBFP1xlW49/k4spqgA7E8BJYV3sOaqkf37HaZtLfmh6SKNvFO90owA sglN6t0nKbvV/XaXy3ebV8t+aZZ63QIDS+k2kt7KXgA3lIPyBV95MdRdobyerNk9LrNq z5qw== X-Gm-Message-State: APjAAAVSSIlrj1Y3T7DbzmjIy5MXRkasbty4TDpxqd+mzDTFQFMNxIHS NvkGEg9sL1YfnLTeLhFwngEiUYJ9As3e/w== X-Google-Smtp-Source: APXvYqzuuDcVRfzFyEoVoXWENM0893RgZCIOnH2r8IE5ZC+H75yCX+lxB58JvO/iSBTXtOLWPNmEOQ== X-Received: by 2002:a63:3c4b:: with SMTP id i11mr396273pgn.123.1581097945643; Fri, 07 Feb 2020 09:52:25 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t11sm3375275pjo.21.2020.02.07.09.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 09:52:24 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Feb 2020 09:52:17 -0800 Message-Id: <20200207175217.14974-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200129155907.20556-1-stephen@networkplumber.org> References: <20200129155907.20556-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3] devtools: add new SPDX license compliance checker X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Simple script to look for drivers and scripts that are missing requires SPDX header. Signed-off-by: Stephen Hemminger --- v3 - pickup more places with boilerplate text avoid false positive for cocci scripts or abignore devtools/spdx-check.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 devtools/spdx-check.sh diff --git a/devtools/spdx-check.sh b/devtools/spdx-check.sh new file mode 100755 index 000000000000..a5be10b26f44 --- /dev/null +++ b/devtools/spdx-check.sh @@ -0,0 +1,24 @@ +#! /bin/sh +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2019 Microsoft Corporation +# +# Produce a list of files with incorrect license +# information + +echo "Files without SPDX License" +echo "--------------------------" + +git grep -L SPDX-License-Identifier -- \ + ':^.git*' ':^.ci/*' ':^.travis.yml' \ + ':^README' ':^MAINTAINERS' ':^VERSION' ':^ABI_VERSION' \ + ':^*/Kbuild' ':^*/README' \ + ':^license/' ':^doc/' ':^config/' ':^buildtools/' \ + ':^*.cocci' ':^*.abignore' \ + ':^*.def' ':^*.map' ':^*.ini' ':^*.data' ':^*.cfg' ':^*.txt' + +echo +echo "Files with additional license text" +echo "----------------------------------" + +git grep -l Redistribution -- \ + ':^license/' ':^/devtools/spdx-check.sh' -- 2.20.1