git: 9ff3c094fde3 - stable/14 - stale symlinks: configurable obj dir prefix

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Mon, 16 Sep 2024 08:30:28 UTC
The branch stable/14 has been updated by wosch:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ff3c094fde3b51b031d19a4f847122fdbb459ac

commit 9ff3c094fde3b51b031d19a4f847122fdbb459ac
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2024-08-12 19:34:43 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2024-09-16 08:30:06 +0000

    stale symlinks: configurable obj dir prefix
    
    Use $MAKEOBJDIRPREFIX if set, otherwise /usr/obj
    
    (cherry picked from commit ccb0365643dc5e8d37ada3789bbe370b81ba5b3c)
---
 tools/build/stale-symlink-buildworld.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/build/stale-symlink-buildworld.sh b/tools/build/stale-symlink-buildworld.sh
index ee918d1c9cd9..acc3fb0baaf2 100755
--- a/tools/build/stale-symlink-buildworld.sh
+++ b/tools/build/stale-symlink-buildworld.sh
@@ -20,8 +20,10 @@ PATH="/bin:/usr/bin"; export PATH
 
 : ${ncpu=$(nproc)}
 
+obj_dir_prefix=${MAKEOBJDIRPREFIX:="/usr/obj"}
+
 # check other directories as well
-: ${STALE_SYMLINK_BUILDWORLD_DIRS="/usr/obj"}
+: ${STALE_SYMLINK_BUILDWORLD_DIRS=$obj_dir_prefix}
 
 trap 'rm -f $script' 0
 script=$(mktemp -t stale-symlink)