From: Christian Goeschel Ndjomouo Date: Thu, 25 Dec 2025 03:54:29 +0000 (-0500) Subject: tools: (get-options.sh) ignore long opt definitions marked with IGNORECHECK=yes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a216b5c43928cb85292e2e03d8f5de6b3677b37b;p=thirdparty%2Futil-linux.git tools: (get-options.sh) ignore long opt definitions marked with IGNORECHECK=yes Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/tools/get-options.sh b/tools/get-options.sh index 49d798ce7..ef71729a4 100755 --- a/tools/get-options.sh +++ b/tools/get-options.sh @@ -13,6 +13,10 @@ # GNU General Public License for more details. # # Copyright (C) 2025 Christian Goeschel Ndjomouo +# +# This script extracts all long options from each program's source file +# and prints them in an alphabetically sorted list. + TOP_SRCDIR=${TOP_SRCDIR:-../} # Directories that contain relevant source files for util-linux programs. @@ -60,7 +64,7 @@ function extract_long_opts() { awk -F ',' 'BEGIN { x = 0 }; \ /struct[[:space:]]*option[[:space:]]*.*[[:space:]]*\[\][[:space:]]*=[[:space:]]*(\{)?/ { x = 1 } \ - x && ! /.*\/\*.*(deprecated|COMPLETION:no).*\*\/.*/ { print $1 } \ + x && ! /.*\/\*.*(deprecated|IGNORECHECK=yes).*\*\/.*/ { print $1 } \ /\};/ { x = 0 }' "${src_path}" \ | grep -Eo '".*"' \ | tr -d '"' \