#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
-scriptversion=2025-06-18.21; # UTC
+scriptversion=2026-05-29.23; # UTC
# Copyright (C) 1999-2026 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
-trap "rmdir '$lockdir'; exit 1" 1 2 15
+cleanup () {
+ rmdir "$lockdir"
+}
+trap "cleanup; exit 1" 1 2 15
# Run the compile.
"$@"
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2025-06-18.21; # UTC
+scriptversion=2026-05-29.23; # UTC
# Copyright (C) 1999-2026 Free Software Foundation, Inc.
# problems in parallel builds. Use a locking strategy to avoid stomping on
# the same $tmpdepfile.
lockdir=$base.d-lock
- trap "
- echo '$0: caught signal, cleaning up...' >&2
- rmdir '$lockdir'
- exit 1
- " 1 2 13 15
+ cleanup () {
+ echo "$0: caught signal, cleaning up..." >&2
+ rmdir "$lockdir"
+ }
+ trap "cleanup; exit 1" 1 2 13 15
numtries=100
i=$numtries
while test $i -gt 0; do