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 E5EDFA0353; Wed, 13 Nov 2019 07:59:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 190525B32; Wed, 13 Nov 2019 07:59:51 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40075.outbound.protection.outlook.com [40.107.4.75]) by dpdk.org (Postfix) with ESMTP id EB9044CA6 for ; Wed, 13 Nov 2019 07:59:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UYwuEDL2sPv83m5L6H7jVaUHVgllA+YVO43+VEQcUXGHEyR/kLw4O7urhcZRAsuU71uVjM1v14sDgXYdkgyf8GuV9s8WbOoSLU9h8Kl8YoEihCnff7lDaD1jewcKZKyPY09Q3K41C14azAYB7x8HMzTh++5Gz/DdAJDQe700AezS8JdpQ9PFJVqBAchJlkbbBH34c5A5NP+1+H63NA5WYaDvfwgJcCKbD9gzDyQyJ+4/U+ejSurCc/nQiE4htRHkjhaUuvQJe1CXQwh+8DweKVUW0xdLchx4m0uGNVUpkR6DfaOlTGqLFrPyn3JQ0idLx9KlMvV7zp37f98HGEP11w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pCBwXs8BKSlgyuU4kjr8SbnwewmnR4pxKwoypJf2uXw=; b=MSX4zlND0htSOEpJvqUpe426c8oQaVFpoyLlm7FC9Xpug96JkSnSDsQ44Ine9sul3bWlUGitbuT+LxwzxHdPgMUt3XIP4XnKMIIhtIQr+IZP0aFs0lsgptIPd3ELrgwYz0vzMJCLutt+Zk5eFHVQhBLgXr/V/oyOcVMZNm/XRK4Dc1QAA9SmXzcARM6s8erQ4NNKbrITKHM1bIpwozibbYlBLUJC81Vn3ScTUXQfdRu6MAECn4Si6FKbAV8YPL0+/11+5wT4lrkH9Wgwa9bbsgqFmK09Xl41W2gzjuHimkJRCJ2pOCgcZtUvDl5VD2lUqRalrB1mftx8zTzes8/chw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pCBwXs8BKSlgyuU4kjr8SbnwewmnR4pxKwoypJf2uXw=; b=kGdzT0yndjEGtniPcT48EwFkoaklSfHJvYgLKtzx8Ot8DFM1K+UEhdp7cvwY5h6HGlR08ETurBoM/AS5pa+Cy1JycA2h+43cBMGvgFu+lZTFt5GNWRkxwZOM6/6qzlzJ4BRfzV7j8mFSJyCIQrcGxqElDJGDl7gZvONkB5L07L0= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.62.139) by VI1PR0401MB2542.eurprd04.prod.outlook.com (10.168.64.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Wed, 13 Nov 2019 06:59:48 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::7012:936f:53fb:f7b6]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::7012:936f:53fb:f7b6%5]) with mapi id 15.20.2451.023; Wed, 13 Nov 2019 06:59:48 +0000 From: Hemant Agrawal To: Stephen Hemminger , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] devtools: add SPDX license tag check script Thread-Index: AQHVlllNFNoB2rUkSUSvptKisxbCiaeIsr7w Date: Wed, 13 Nov 2019 06:59:48 +0000 Message-ID: References: <20190814164320.12376-1-stephen@networkplumber.org> <20191108172343.10095-1-stephen@networkplumber.org> In-Reply-To: <20191108172343.10095-1-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-originating-ip: [92.121.36.198] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b2ce96c7-5d24-4a32-41e8-08d768071299 x-ms-traffictypediagnostic: VI1PR0401MB2542: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0220D4B98D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(13464003)(199004)(189003)(71200400001)(71190400001)(486006)(11346002)(446003)(44832011)(476003)(66476007)(256004)(53546011)(6506007)(64756008)(26005)(8936002)(66556008)(7696005)(186003)(102836004)(66946007)(76176011)(8676002)(33656002)(81156014)(81166006)(66446008)(5660300002)(66066001)(52536014)(76116006)(2906002)(6116002)(3846002)(86362001)(55016002)(6436002)(110136005)(229853002)(316002)(2501003)(99286004)(45080400002)(478600001)(14454004)(6246003)(305945005)(7736002)(74316002)(9686003)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2542; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V5hRsLYV2NMlkHzNUd8GPyMZRgei8qjR4KwhCaHn11OsorzoiSgfF14xgMUtRYTsEg7j0okcsyVGW0vqwZ3yfaaWAZ3Nn3sJxlaw35f+LnY1CqCkatPY4P+hnuDKz18xBkyuBqsBNo3EWSfsnfSqUkMK08Ox0qyDXQ6lnbZLVOEJ6CIypGpGL6hlpwxz5oICgvigfU6WaDBjdjrafIXRE+Rc4zz2oDJQnAyYD17zZxotjUhkvCrM5Ev78mOwoZG4qheuQyXHvHIm3BSSchDpscrwvXDuIlQ1NtDhcgpL1uXXwtQftXiPechJO5eJhzt5B7wtn+uc1tNvqZfZTJHJ1LE5oc4BdYUm/xUln+8WFA/LZMuDAwUFum9pTLNquZGjNfXon95R0y9sZhvgvTLGOpRtyM1yVE4RpV32jjLRxa27k/FNaZ4aeH5H/S6D/VKw x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2ce96c7-5d24-4a32-41e8-08d768071299 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2019 06:59:48.1298 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Mb2xr1UkAzPmT3vfLpi3IV+E1AISHyKBb7cOXgp+FmnJ6v5xHRv70He1dZn49P32lUPHFypC+wh3AE/HM1U5pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2542 Subject: Re: [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" HI Stephen, Will you please enhance it to also provide number of files in each categor= y?=20 We also need to think about how to handle the scripts "*.sh", as many of th= ese are without SPDX. - we can either leave them as it is. Or , we can put the SPDX header without a copyright?=20 Regards, Hemant > -----Original Message----- > From: dev On Behalf Of Stephen Hemminger > Sent: Friday, November 8, 2019 10:54 PM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH] devtools: add SPDX license tag check script >=20 > Simple script to look for missing SPDX license tags with exceptions for c= ertain > directories and file types. >=20 > Signed-off-by: Stephen Hemminger > --- > devtools/spdx-check.sh | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100755 devtools/spdx-check.sh >=20 > diff --git a/devtools/spdx-check.sh b/devtools/spdx-check.sh new file mod= e > 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