2011-07-16 20:59:44 +02:00
|
|
|
|
|
|
|
# we go through a bit of work to get the unmangled names of the
|
|
|
|
# typeinfo symbols because of
|
|
|
|
# http://sourceware.org/bugzilla/show_bug.cgi?id=10326
|
|
|
|
|
|
|
|
if [ $# -lt 2 ]; then
|
|
|
|
echo Usage: $0 header obj1 obj2 obj3
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
HEADER=$1
|
|
|
|
shift
|
|
|
|
|
|
|
|
printf '{\nglobal:\n'
|
|
|
|
nm --defined $* | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \
|
|
|
|
while read sym; do
|
|
|
|
demangled=$(c++filt $sym)
|
|
|
|
case $demangled in
|
|
|
|
typeinfo*)
|
|
|
|
printf "\t$sym;\n"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2011-08-21 21:45:00 +02:00
|
|
|
sed -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
|
2011-07-16 20:59:44 +02:00
|
|
|
printf "local: *;\n};\n"
|