]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
all_errnos/all_syscalls: don't warn during cleanup
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 Apr 2024 07:14:28 +0000 (09:14 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 Apr 2024 07:28:06 +0000 (09:28 +0200)
On failure the output files may not have been created.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tools/all_errnos
tools/all_syscalls

index 828d56f683d5ca632bb8f383b618104b26689393..4b662aa8f326fb8cf32a58cfb3742f8715101680 100755 (executable)
@@ -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] ")" }' \
index c8a56155b7f647105bd9ebd573302b3f479a6dde..f2f91b3aefbf06701b6af23b5a9cfc90caf796ff 100755 (executable)
@@ -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] ")" }' \