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 16D48A04B4; Fri, 8 Nov 2019 18:23:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 78FE51D148; Fri, 8 Nov 2019 18:23:53 +0100 (CET) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id DF90C1C440 for ; Fri, 8 Nov 2019 18:23:52 +0100 (CET) Received: by mail-pg1-f194.google.com with SMTP id r18so4337047pgu.13 for ; Fri, 08 Nov 2019 09:23:52 -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=vCdtAHNJIwxo/gu6AyJAcpiWcQx1c8a/XrjhMWVflRw=; b=tCXz3rWJdD8gmUFtQx+X9bTfr5hExu7QENiHPa3Xf3bgWf9KFaKH2u4Ip0bBe1tvrc 4dK92W0WE0SE1DL04yx94WPLkTMQdt/pAERtm2hOBxf9CoqUJKaju+s/LW3/1tEv9gsc 9UZMIueHZotUzxHWuYchGyzpYrOv5Cevq+DqK7QrrwfUrwTzIBDB+lTAAYrRBtPKplUE a7rolHQVeZ3A0tV5gRWMjtk8vePRBLTmWsC9M6NQD1Ly4wuVkFyCwO6Dk2OiowQyjtEJ +PCAeVMMD1QPt7efWOnzBaFDh78iqB7TSvmGoiqbEc5IjzMp0m0ddysEcVWmNy6rUlDi 36+Q== 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=vCdtAHNJIwxo/gu6AyJAcpiWcQx1c8a/XrjhMWVflRw=; b=tNmSRxjeYy4doxeGiHLsjVepZLqfGL3bLJ0s4uOTZDiE2oyaTLfr5RcITsJnabWViB 78QAwoeSErFHuoMWs9QxIklUVcEWzYJngkEXbU1BUSEPify2ecq+wMLNSNjldM94tfw2 hD0q44wRSnog95+CRElvTjZ8LprB3aYkMRve37jGLzfYq2ivg/LAA8e2c8mEW8DFTPbm 0nRwDllUVb0h9wuTicSuVWVzVNJJcgcjfto4GHuvDwmYXM2DuyjihxeGNBjYn+fIDKMY vcQJDrI/WF/jl8Tgqc8DXRosKM8FAsM2KCe/pQ7NabznyoFq+wNGKcoeqeE+eu6iRKHv vzNQ== X-Gm-Message-State: APjAAAV1NPdaL8m4uvQjJhNpzDRAEICjO89B4cVPBTHIhiQDMTeELRrT G5W3fqfnLdC232r+PDGbW47QbfFMTLzYGA== X-Google-Smtp-Source: APXvYqxnqTF+iQKAJ/3om5o6/VSFa2HQZyp4kReELDU9+sKw+DwcULNcMKAQxDgVRBZ2mxFLehHFdw== X-Received: by 2002:a62:aa0a:: with SMTP id e10mr10457989pff.46.1573233831669; Fri, 08 Nov 2019 09:23:51 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id b82sm6715858pfb.33.2019.11.08.09.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 09:23:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 8 Nov 2019 09:23:43 -0800 Message-Id: <20191108172343.10095-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814164320.12376-1-stephen@networkplumber.org> References: <20190814164320.12376-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] devtools: add SPDX license tag check script 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 missing SPDX license tags with exceptions for certain directories and file types. Signed-off-by: Stephen Hemminger --- devtools/spdx-check.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 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..4427398411f6 --- /dev/null +++ b/devtools/spdx-check.sh @@ -0,0 +1,22 @@ +#! /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 -- \ + ':^.git*' ':^.ci/*' ':^.travis.yml' \ + ':^README' ':^MAINTAINERS' ':^VERSION' \ + ':^*/Kbuild' ':^*/README' \ + ':^license/' ':^doc/' ':^config/' ':^buildtools/' \ + ':^*.def' ':^*.map' ':^*.ini' ':^*.data' ':^*.cfg' ':^*.txt' + +echo +echo "Files with redundant BSD boilerplate" +echo "------------------------------------" + +git grep -l SPDX-License-Identifier | \ + xargs grep -l 'Redistribution' -- 2.20.1