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 D6055A0471 for ; Wed, 14 Aug 2019 18:43:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 96E09375B; Wed, 14 Aug 2019 18:43:30 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by dpdk.org (Postfix) with ESMTP id 9922E1252 for ; Wed, 14 Aug 2019 18:43:29 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id c2so50914297plz.13 for ; Wed, 14 Aug 2019 09:43:29 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=TRZ5aeHw+yiPqOEXqcuGPIR3cN2Zdaab+NOfimvYLQs=; b=mgNkj7edlSsuQQcSpUPrDX4DUETq0Axz+ve+coPOLjyW7NCvOIq6hCpI+6CPIbKrRF buMoeAxKLZB74SwO0/29G2Pl+wit7+tVipv0cGvQcoQaAu8cmhTmiYxE66jkIjvPU+IO MLiDTOqDfqtQfEBzQ/UdxqvOe6C0QWQo5uVxXEP4Fp33JFvELgH8IuOU0xC0iFiNoVyU OZDguKuCJo8TNSRR+FxhvSfjMCHjA1JQrvYaGcntsNg3oPUTR5XszDosDdFOsCzNS/RT +GYwsP1H17jrIcMu9w6aCaOc2R8WYKGYBpffEVO56HVcw4FUSU038h3/pdBPFxVteHnS tOcg== 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:mime-version :content-transfer-encoding; bh=TRZ5aeHw+yiPqOEXqcuGPIR3cN2Zdaab+NOfimvYLQs=; b=Gmi1Y5Y3PM+nPZQA/V7nj0pCu+Xfn/KMLuagOLUHF8s7PZXlHwxvSWZ1dZDwRPM8gH I6BmSDPFMVhCqvVYfdrsLMnP4WEp6lO5t3Ja86/4AxRdAf6cIiBYBfTR5tLYg4OOgqzV sd9cVEIyo+W+gTm1QdnXRfynG5RNX2WKhrQysCHCq2K2+0ZU033h3TXxziN4JNhBQ71M WtO2HML8Q7psdkKeiXmE69IJb4z571a6ipYC6UcBcfXD6brS79VPY981f1Ntl0gUOiAH EZ6zf3KfU2pp/1KXOcikPgGHFsqido/CWqK7U4f0tk4V2hd3ZUSHexS2QEOI0IO8y3HM N7KQ== X-Gm-Message-State: APjAAAW1wL2de6jIZyrufxbMKDIZMGNLkCKeiiAy3vo3fUg3QEwmEljL jVQyMwy1IDxqw/vFjX4zl04cj220NQM= X-Google-Smtp-Source: APXvYqwYcl1yGmZjsMYrR9L2cks55yxfczD6szXzyzQVwt2AwbCK8STqQgav5yDkQ1RMreImZ1Wcsw== X-Received: by 2002:a17:902:2ae8:: with SMTP id j95mr288425plb.276.1565801008216; Wed, 14 Aug 2019 09:43:28 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id g11sm301560pfh.121.2019.08.14.09.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 09:43:27 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 14 Aug 2019 09:43:20 -0700 Message-Id: <20190814164320.12376-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC] devtools: add spdx license check tool 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" This is a simple script to print files that have missing SPDX license tag and list of files with redundant boilerplate. Signed-off-by: Stephen Hemminger --- devtools/spdx-check.sh | 19 +++++++++++++++++++ 1 file changed, 19 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..c77454a8b320 --- /dev/null +++ b/devtools/spdx-check.sh @@ -0,0 +1,19 @@ +#! /bin/sh +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2019 Microsoft Corporation +# +# Produce a list of files without SPDX license identifiers + +echo "Files without SPDX License" +echo "--------------------------" + +git grep -L SPDX-License-Identifier | \ + grep -v '^\.' |grep -v '^license/' |\ + grep -v '\.map$' | grep -v '\.png$' | grep -v '\.svg$' + +echo +echo "Files with redundant BSD boilerplate" +echo "------------------------------------" + +git grep -l SPDX-License-Identifier | \ + xargs grep -l 'Redistribution and use' -- 2.20.1