From: Timothy Day Date: Mon, 20 Jan 2025 21:07:13 +0000 (-0500) Subject: LU-16707 scripts: ignore some files in license-status X-Git-Tag: 2.16.53~147 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F57833%2F2;p=fs%2Flustre-release.git 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 --- 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"