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 80ED6A052F; Wed, 29 Jan 2020 16:59:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FAB71BFE6; Wed, 29 Jan 2020 16:59:19 +0100 (CET) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by dpdk.org (Postfix) with ESMTP id 81EB01BFE2 for ; Wed, 29 Jan 2020 16:59:17 +0100 (CET) Received: by mail-pj1-f43.google.com with SMTP id r67so2729290pjb.0 for ; Wed, 29 Jan 2020 07:59:17 -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:mime-version :content-transfer-encoding; bh=UVN5kEpHK3nXzLi+mwx3uVCrzO/kYgCWBFJ/VbgBC3o=; b=xLM0vENaF2OWUlhRjr+5UbdAenTVbFngxyWPOfyRhMTqLOwTvCe3w2I3vMf6FUER8c mgmE28e0O9tyIJlpR48Hmpg9ab34D+mTVCkiYBbvYw7LDAZujR+HPJZ7oR5fffVR3sjQ dTHdxeEuMjQsfNgw8gjVdtNnpx2cHAarA3vXfMp0wQVKYa+Y1wow8nXb8GHHqRqxz8b4 Y+xyPv/9TKWi6jTuAHbjWG4f4j7e1WnCDLVTZBH9RDgqaIey6UD2r9CqtN/W5g3kZe4d PA45UxSy6lUCz5fNBGM1dYBGtBzh4TzlFibqutS7CmZtmbWqI19Hu0RnG8VRceweDyJV qrOA== 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=UVN5kEpHK3nXzLi+mwx3uVCrzO/kYgCWBFJ/VbgBC3o=; b=JnjwxVJnDNNAM7/Q/VxqcsI7pEBHnnaWAjBlhSZzWjWdNg0NxtGvuhAX4vnGitPtcj ++JO1yAkP1SCuffl++UuphtXT3CoWs6kopHv1ApfjeT9511zm3eaKuDdN/WpwdGo4vEb K5ByTMsjcLNDXB9wef75HJ+N006xhSuIWdEmycQE/yN457Sn9Vtj99uL11wnwXXmB4Lg /Gu7QLo2gD7+QmLtW7AP9WLC8NJehLXJWuhhUWGe534lSHe3m3tAyPCyawpkakp79Ho+ 307F7QoyQmfp6b6avQzPtCMKy0qjAKmhjwlb/TPocXAPsZnR8A9TtSH6dNVVfb9Kk6Iy nLiQ== X-Gm-Message-State: APjAAAXU7yslxHmdsZVjGv2Bg5EpfPSo9dC5u6i/elA3zjyiRZjcDg3V Nf5jkEUVEazjfVyuZnBhnVlJUBaRQs8= X-Google-Smtp-Source: APXvYqzxtUpXJRcYCYkEwxp0WDg5ObD4ZBRgNA3YN/dxnZJX6DBNhE9v7kBb4t03BSwRthyfCYMOaw== X-Received: by 2002:a17:90a:d104:: with SMTP id l4mr323692pju.60.1580313556091; Wed, 29 Jan 2020 07:59:16 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f8sm3116575pfn.2.2020.01.29.07.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 07:59:15 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 29 Jan 2020 07:59:07 -0800 Message-Id: <20200129155907.20556-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] 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 --- devtools/spdx-check.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 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..6713d556d224 --- /dev/null +++ b/devtools/spdx-check.sh @@ -0,0 +1,23 @@ +#! /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' ':^ABI_VERSION' \ + ':^*/Kbuild' ':^*/README' \ + ':^license/' ':^doc/' ':^config/' ':^buildtools/' \ + ':^devtools/cocci/' \ + ':^*.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