use `/usr/libexec/PlistBuddy` in `list_id`-scripts (#22592)

This commit is contained in:
Markus Reiter 2016-07-05 08:00:20 +02:00 committed by Josh Hagins
parent fe4dc6f241
commit 6dad86849d
3 changed files with 3 additions and 9 deletions

View File

@ -26,9 +26,7 @@ xargs="$(/usr/bin/which gxargs || printf '/usr/bin/xargs')"
bundle_id_source_1 () {
/usr/bin/find "$kextdir" -name Info.plist -print0 | \
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
/usr/bin/perl -0777 -ne \
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
}
merge_sources () {

View File

@ -27,9 +27,7 @@ xargs="$(/usr/bin/which gxargs || printf '/usr/bin/xargs')"
bundle_id_source_1 () {
/usr/bin/find "$appdir" -name Info.plist -print0 | \
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
/usr/bin/perl -0777 -ne \
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
}
merge_sources () {

View File

@ -32,9 +32,7 @@ bundle_id_source_1 () {
bundle_id_source_2 () {
/usr/bin/find "$pkgdir" -name Info.plist -print0 | \
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
/usr/bin/perl -0777 -ne \
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
}
merge_sources () {