aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2024-04-16 09:14:28 +0200
committerThomas Weißschuh <thomas@t-8ch.de>2024-04-16 09:28:06 +0200
commit4d5441ec53337edae2b9f7deef0e21d700c06b4d (patch)
treed39f384fb3ee18a2a80ca03dc8794b45bd6c3ce7
parent7522d8df797c9ed813b9f75050e25becdcb4a25b (diff)
downloadutil-linux-4d5441ec53337edae2b9f7deef0e21d700c06b4d.tar.gz
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 <thomas@t-8ch.de>
-rwxr-xr-xtools/all_errnos2
-rwxr-xr-xtools/all_syscalls2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/all_errnos b/tools/all_errnos
index 828d56f683..4b662aa8f3 100755
--- a/tools/all_errnos
+++ b/tools/all_errnos
@@ -10,7 +10,7 @@ ERRNO_INCLUDES="
#include <sys/errno.h>
"
-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 c8a56155b7..f2f91b3aef 100755
--- a/tools/all_syscalls
+++ b/tools/all_syscalls
@@ -8,7 +8,7 @@ SYSCALL_INCLUDES="
#include <sys/syscall.h>
"
-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] ")" }' \