unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob f71afeccb4d1c06478274c7d16d5f3ec4d167820 598 bytes (raw)
name: lib/gen-version-script.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 

# 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 $* | grep "^[0-f][0-f]*" | 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
sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
printf "local: *;\n};\n"

debug log:

solving f71afec ...
found f71afec in https://yhetil.org/notmuch/87r54312zt.fsf@pc44es141.cs.uni-magdeburg.de/ ||
	https://yhetil.org/notmuch/8739gj2r39.fsf@pc44es141.cs.uni-magdeburg.de/
found ec80196 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100644 ec801966f97e406aebd1d221e092f118d80d868c	lib/gen-version-script.sh

applying [1/1] https://yhetil.org/notmuch/87r54312zt.fsf@pc44es141.cs.uni-magdeburg.de/
diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index ec80196..f71afec 100644

Checking patch lib/gen-version-script.sh...
Applied patch lib/gen-version-script.sh cleanly.

skipping https://yhetil.org/notmuch/8739gj2r39.fsf@pc44es141.cs.uni-magdeburg.de/ for f71afec
index at:
100644 f71afeccb4d1c06478274c7d16d5f3ec4d167820	lib/gen-version-script.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).