From f259abcb21f795c17e4a4eac5e26444ce129e1c6 Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Mon, 20 Jan 2025 16:07:13 -0500 Subject: [PATCH] LU-16707 scripts: ignore some files in license-status Many files in-tree don't need a SPDX tag - so lets ignore them in license-status. Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: I31a0ae474fce78885e0391544500c2339dae66d7 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57833 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- contrib/scripts/license-status | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/contrib/scripts/license-status b/contrib/scripts/license-status index 7a60610..9d7d273 100755 --- a/contrib/scripts/license-status +++ b/contrib/scripts/license-status @@ -4,7 +4,7 @@ # # Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. # -# Copyright (c) 2023-2024, Amazon and/or its affiliates. All rights reserved. +# Copyright (c) 2023-2025, Amazon and/or its affiliates. All rights reserved. # Use is subject to license terms. # @@ -18,8 +18,22 @@ # export files="${1:-$(pwd)}" +export file_paths=$(git ls-files "$files" | grep -v -f <(cat < /dev/null; then license="$(grep SPDX "$file" | awk '{ print $3; exit; }')" printf "%-10s %-15s %-s\n" "SPDX" "$license" "$file" -- 1.8.3.1