]>
git.saurik.com Git - apple/xnu.git/blob - config/generate_symbolset_plist.sh
6 echo "Usage: $0 output.plist Info.plist input1.exports [input2.exports ... ]" 1>&2
12 if [ "${OUTPUT##*.}" != "plist" -o "${PLIST##*.}" != "plist" ]; then
13 echo "Usage: $0 output.plist Info.plist input1.exports [input2.exports ... ]" 1>&2
18 if [ $(egrep -c 'CFBundleIdentifier|OSBundleCompatibleVersion|CFBundleVersion' $PLIST) -lt 3 ]; then
19 echo "error: Invalid input Info.plist $PLIST" 1>&2
24 '<?xml version="1.0" encoding="UTF-8"?>
25 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
31 /CFBundleIdentifier|OSBundleCompatibleVersion|CFBundleVersion/ {
36 sort -u "$@" | awk -F: '
38 print " <key>Symbols</key>"
43 print " <key>SymbolName</key>"
44 print " <string>"$1"</string>"
45 print " <key>AliasTarget</key>"
46 print " <string>"$2"</string>"
52 print " <key>SymbolPrefix</key>"
53 print " <string>"substr($1, 1, length($1) - 1)"</string>"
59 print " <key>SymbolName</key>"
60 print " <string>"$1"</string>"