Revert "Simplify bsdmake wrapper"

Fixes Homebrew/homebrew#34713.

This reverts commit e4461afd36f04b1cd3cf56ec0636202150ce0570.
This commit is contained in:
Jack Nagel 2014-12-05 16:54:07 -05:00
parent fed9c9a9be
commit d85d5fba22
2 changed files with 8 additions and 2 deletions

View File

@ -1 +0,0 @@
make

7
Library/ENV/4.3/bsdmake Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
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" "$@"

View File

@ -1,3 +1,3 @@
#!/bin/bash
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
exec xcrun "${0##*/}" "$@"
exec xcrun make "$@"