mirror of
https://github.com/munki/munki.git
synced 2026-01-05 14:10:00 -06:00
build_python_framework.sh: print any libraries found inside the generated Python framework that are not universal
This commit is contained in:
@@ -65,6 +65,8 @@ LIB_COUNT=$(find "${MUNKIROOT}/Python.framework" -name "*.so" -or -name "*.dylib
|
||||
UNIVERSAL_COUNT=$(find "${MUNKIROOT}/Python.framework" -name "*.so" -or -name "*.dylib" | xargs file | grep "2 architectures" | wc -l)
|
||||
if [ "$LIB_COUNT" != "$UNIVERSAL_COUNT" ] ; then
|
||||
echo "$LIB_COUNT libraries (*.so and *.dylib) found in the framework; only $UNIVERSAL_COUNT are universal!"
|
||||
echo "The following libraries are not universal:"
|
||||
find Python.framework -name "*.so" -or -name "*.dylib" | xargs file | grep -v "2 architectures" | grep -v "(for architecture"
|
||||
STATUS=1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user