From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/spdk/dpdk/buildtools/list-dir-globs.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 src/spdk/dpdk/buildtools/list-dir-globs.py (limited to 'src/spdk/dpdk/buildtools/list-dir-globs.py') diff --git a/src/spdk/dpdk/buildtools/list-dir-globs.py b/src/spdk/dpdk/buildtools/list-dir-globs.py new file mode 100755 index 000000000..80b5e801f --- /dev/null +++ b/src/spdk/dpdk/buildtools/list-dir-globs.py @@ -0,0 +1,19 @@ +#! /usr/bin/env python3 +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +import sys +import os +from glob import iglob + +if len(sys.argv) != 2: + print("Usage: {0} [,[,...]]".format(sys.argv[0])) + sys.exit(1) + +root = os.path.join(os.getenv('MESON_SOURCE_ROOT', '.'), + os.getenv('MESON_SUBDIR', '.')) + +for path in sys.argv[1].split(','): + for p in iglob(os.path.join(root, path)): + if os.path.isdir(p): + print(os.path.relpath(p)) -- cgit v1.2.3