mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
Superenv scripts have a stripped PATH, which may not include the brew binary itself. Make this explicitly available to superenv scripts. Fixes bsdmake wrapper. Closes #16805. Closes #16846. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
12 lines
386 B
Bash
Executable File
12 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
|
|
if [ $(basename "$0") == "bsdmake" ]; then
|
|
pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
bsd="$pwd/../../../bin/bsdmake"
|
|
# bsdmake used to be keg-only: support users who don't run brew doctor
|
|
[ -x "$bsd" ] || bsd="$(${HOMEBREW_BREW_FILE} --prefix bsdmake)/bin/bsdmake"
|
|
exec "$bsd" "$@"
|
|
else
|
|
exec xcrun make "$@"
|
|
fi
|