From patchwork Thu May 23 14:54:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Alnubani X-Patchwork-Id: 53671 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0D9001B945; Thu, 23 May 2019 16:54:17 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00081.outbound.protection.outlook.com [40.107.0.81]) by dpdk.org (Postfix) with ESMTP id 30BCC5689 for ; Thu, 23 May 2019 16:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4pYowcCHcp+N+cixi3Q/fGrt08rhFKPFNayyNewn6CA=; b=QAw5r4AALhripYw8LCUVoPn/xwCvI0AI14c/gS4XP4QZ6HURffMpElqe6Aap5sRdcYuimjg5jGoYf6+cnKwiXuqx7caAf6f2wZmUzAfn9SiwxFFM9cMXdOm1n2YLhQAoIiQd7zKtj/JPBmFXNcvhX+qaepzAIX/ZtXPaqYzIPAY= Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com (10.168.58.144) by DB6PR0501MB2856.eurprd05.prod.outlook.com (10.172.225.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Thu, 23 May 2019 14:54:12 +0000 Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b]) by DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b%4]) with mapi id 15.20.1922.013; Thu, 23 May 2019 14:54:12 +0000 From: Ali Alnubani To: "dev@dpdk.org" CC: "bruce.richardson@intel.com" , "bluca@debian.org" Thread-Topic: [PATCH 1/2] examples: strip directory and use suffix as name Thread-Index: AQHVEXdibiq1vdBsFkaNsdNvnlc5RA== Date: Thu, 23 May 2019 14:54:12 +0000 Message-ID: <20190523145358.1492-1-alialnu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.19.2 x-clientproxiedby: VI1P195CA0016.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:d0::26) To DB6PR0501MB2167.eurprd05.prod.outlook.com (2603:10a6:4:51::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=alialnu@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c3e11908-4546-4588-e188-08d6df8e8442 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:DB6PR0501MB2856; x-ms-traffictypediagnostic: DB6PR0501MB2856: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(39860400002)(396003)(136003)(199004)(189003)(305945005)(66946007)(73956011)(5660300002)(1076003)(486006)(7736002)(66476007)(6436002)(66556008)(66446008)(64756008)(54906003)(71200400001)(71190400001)(2616005)(102836004)(86362001)(6916009)(6512007)(386003)(6506007)(5640700003)(4744005)(2501003)(476003)(3846002)(81166006)(8936002)(2351001)(36756003)(4326008)(8676002)(6116002)(478600001)(25786009)(316002)(99286004)(186003)(66066001)(14444005)(50226002)(68736007)(256004)(81156014)(53936002)(2906002)(14454004)(6486002)(52116002)(1730700003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2856; H:DB6PR0501MB2167.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hCjDGOSYXhx7JTm5PFOtEmaN6ULEHUM/uExsw7b1ZSz3gBzLPAQY5lPh+UCZ8SJKmdkh/joEE+woPYYkqsDSaJjvaiQUnfRm+Xu91rFfFvbB4aVq7EDOdwJR9I182r2ftPWPrX1eQi4w0H0gfuEJY7Gd9fhfi18Q/ny2ZqGDKXzUAznrkSz+0zA3wFhqIykd9+zR1E8v1okc8534jLCdrvRzVX1l59WHYNgbWAZcOQG9uIR8O+44xW5h8lr4oGoho2NfkO4dj5GQt++1oGt3nxTby3DLwQP44AUeFBqLzVerfaA7Es7b7XjT4nyeONls0lrop6zGgLIZZz0CoB5/X7Ot0iioRSPZJX1pVseJQg8rNTnE2W+6CJ/i4RfKbuFtMtKr4BIYgU87Hyc4hRhCIV9xcmOswjafj/+MGAwBFJw= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3e11908-4546-4588-e188-08d6df8e8442 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 14:54:12.1883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2856 Subject: [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name 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 would allow correctly naming an application residing in a subdirectory. For example, if the example is set to 'path/to/app', then the name would be 'app'. This doesn't affect the naming of an example that isn't in a subdirectory. Signed-off-by: Ali Alnubani --- examples/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index de35656d4..53a786eb4 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -64,7 +64,7 @@ endif default_cflags += '-D_GNU_SOURCE' foreach example: examples - name = example + name = example.split('/')[-1] build = true sources = [] allow_experimental_apis = false