mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
mkpkg: handle a macOS SDK that just uses the major version.
For example, MacOSX11.sdk instead of MacOSX11.3.sdk.
This commit is contained in:
parent
70c0d35faa
commit
0a89b87a3f
@ -347,7 +347,7 @@ case "$osversion" in
|
||||
;;
|
||||
esac
|
||||
if test "${osversion}" != "`$scriptdir/pp --probe`"; then
|
||||
sdkvers=`echo "${osversion}" | sed 's/^macos\([0-9][0-9]\)\([0-9]*\)-.*$/\1.\2/'`
|
||||
sdkvers=`echo "${osversion}" | sed -e 's/^macos\([0-9][0-9]\)\([0-9]*\)-.*$/\1.\2/' -e 's/\.$//'`
|
||||
# SDKs may be under Xcode.app or CommandLineTools (for non-Xcode)
|
||||
if [ -d "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" ]; then
|
||||
SDK_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs"
|
||||
|
Loading…
x
Reference in New Issue
Block a user