projects
/
apple
/
xnu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
xnu-4903.231.4.tar.gz
[apple/xnu.git]
/
config
/
generate_linker_exports.sh
1
#!/bin/sh
2
3
set -e
4
5
if
[
$#
-lt
2
];
then
6
echo
"Usage:
$0
output.exp input1 [input2 ... ]"
1
>&
2
7
exit
1
8
fi
9
10
OUTPUT
=
"
$1
"
11
shift
12
13
(
grep
-h -v
":"
"$@"
;
grep
-h
":"
"$@"
|
awk
-F
:
'{print
$2
}'
) |
sort
-u
>
"
$OUTPUT
"
14
15
exit
0