Skip to content

Instantly share code, notes, and snippets.

@leiless
Last active August 17, 2018 02:08
Show Gist options
  • Save leiless/9d339a14d5a984db37299be07eaabc7b to your computer and use it in GitHub Desktop.
Save leiless/9d339a14d5a984db37299be07eaabc7b to your computer and use it in GitHub Desktop.
Generate the XML-format dependencies of kernel extension which used in Info.plist of the kext
#!/bin/sh
#
# Created 18H17
#
# Generate the XML-format dependencies of kernel extension
# which used in Info.plist of the kext
#
if [ $# -lt 1 ]; then
echo "kextdeps.sh kext ..."
exit 1
fi
for KEXT in "$@"
do
echo "$KEXT:"
kextlibs -compatible-versions -unsupported -multdef-symbols -undef-symbols -xml "$KEXT"
[ $? -eq 0 ] || exit 2
done
#echo "<!-- Put above XML into Info.plist of your kext -->"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment