From: Thomas Weißschuh Date: Tue, 16 Apr 2024 07:14:28 +0000 (+0200) Subject: all_errnos/all_syscalls: don't warn during cleanup X-Git-Tag: v2.42-start~404^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d5441ec53337edae2b9f7deef0e21d700c06b4d;p=thirdparty%2Futil-linux.git all_errnos/all_syscalls: don't warn during cleanup On failure the output files may not have been created. Signed-off-by: Thomas Weißschuh --- diff --git a/tools/all_errnos b/tools/all_errnos index 828d56f68..4b662aa8f 100755 --- a/tools/all_errnos +++ b/tools/all_errnos @@ -10,7 +10,7 @@ ERRNO_INCLUDES=" #include " -trap 'rm $OUTPUT $OUTPUT.deps' ERR +trap 'rm -f $OUTPUT $OUTPUT.deps' ERR "$@" -MD -MF "$OUTPUT.deps" <<< "$ERRNO_INCLUDES" -dM -E - \ | gawk 'match($0, /^#[ \t]*define[ \t]*E([^ ]+)/, res) { print "UL_ERRNO(\"E" res[1] "\", E" res[1] ")" }' \ diff --git a/tools/all_syscalls b/tools/all_syscalls index c8a56155b..f2f91b3ae 100755 --- a/tools/all_syscalls +++ b/tools/all_syscalls @@ -8,7 +8,7 @@ SYSCALL_INCLUDES=" #include " -trap 'rm $OUTPUT $OUTPUT.deps' ERR +trap 'rm -f $OUTPUT $OUTPUT.deps' ERR "$@" -MD -MF "$OUTPUT.deps" <<< "$SYSCALL_INCLUDES" -dM -E - \ | gawk 'match($0, /^#define __NR_([^ ]+)/, res) { print "UL_SYSCALL(\"" res[1] "\", __NR_" res[1] ")" }' \