#!/bin/sh set -e if [ $# -lt 2 ]; then echo "Usage: $0 output.plist input1.plist [input2.plist ... ]" 1>&2 exit 1 fi OUTPUT="$1" shift printf \ ' SymbolsSets ' > "$OUTPUT" for f in "$@"; do awk ' BEGIN { print " " } /^\t/ { print " " $0 next } END { print " " } ' "$f" >> "$OUTPUT" done printf \ ' WeakRefFallbackSymbol SymbolName _gOSKextUnresolved ' >> "$OUTPUT" exit 0