]> git.saurik.com Git - apple/xnu.git/blame - config/generate_linker_exports.sh
xnu-4903.270.47.tar.gz
[apple/xnu.git] / config / generate_linker_exports.sh
CommitLineData
b7266188
A
1#!/bin/sh
2
3set -e
4
5if [ $# -lt 2 ]; then
6 echo "Usage: $0 output.exp input1 [input2 ... ]" 1>&2
7 exit 1
8fi
9
10OUTPUT="$1"
11shift
12
13( grep -h -v ":" "$@"; grep -h ":" "$@" | awk -F: '{print $2}' ) | sort -u > "$OUTPUT"
14
15exit 0