stale symlinks: configurable obj dir prefix

Use $MAKEOBJDIRPREFIX if set, otherwise /usr/obj
This commit is contained in:
Wolfram Schneider 2024-08-12 19:34:43 +00:00
parent f5ce3f4ef5
commit ccb0365643

View File

@ -11,8 +11,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)