HomeFreeBSD

depend-cleanup.sh: Simplify the logic, and clean bootstrap tools.

Description

depend-cleanup.sh: Simplify the logic, and clean bootstrap tools.

  • There's no need to check if the file exists before grepping it; if it does not exist, grep will fail, which is what we want. Just redirect the error message to /dev/null.
  • There's no need to split the .o and .pico cases; the bodies are identical, so combine the conditions. Use a glob to avoid a false negative if one exists but not the other.
  • Also run depend-cleanup.sh on the bootstrap build tree. This unbreaks the build after 29c5f8bf9a01.

Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D38447

(cherry picked from commit 0dfaefa975477cee2ec3155c3e0689ba1fcdde9a)

Pull Request: https://github.com/freebsd/freebsd-src/pull/1543

Details

Provenance
desAuthored on Feb 8 2023, 10:58 PM
brooksCommitted on Dec 9 2024, 9:46 PM
Differential Revision
D38447: depend-cleanup.sh: Simplify the logic, and clean bootstrap tools.
Parents
rGf507e664dc9d: sys/sys/kernel.h: Various whitespace fixes
Branches
Unknown
Tags
Unknown