From 4d5441ec53337edae2b9f7deef0e21d700c06b4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 16 Apr 2024 09:14:28 +0200 Subject: [PATCH] all_errnos/all_syscalls: don't warn during cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On failure the output files may not have been created. Signed-off-by: Thomas Weißschuh --- tools/all_errnos | 2 +- tools/all_syscalls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] ")" }' \ -- 2.47.2