Commit 44aa9105 authored by Martin Storsjö's avatar Martin Storsjö

makedef: Fold as much text transformations as possible into the initial dump

This avoids redoing them for each expression in the list.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent abf1c058
......@@ -112,7 +112,10 @@ for line in $(cat ${vscript} | tr '\t' ' '); do
'
done
dump=$(dumpbin -linkermember:1 ${libname})
dump=$(dumpbin -linkermember:1 ${libname} |
sed -e '/public symbols/,$!d' -e '/^ \{1,\}Summary/,$d' -e "s/ \{1,\}${prefix}/ /" -e 's/ \{1,\}/ /g' |
tail -n +2 |
cut -d' ' -f3)
rm ${libname}
......@@ -121,9 +124,6 @@ list=""
for exp in ${regex}; do
list="${list}"'
'$(echo "${dump}" |
sed -e '/public symbols/,$!d' -e '/^ \{1,\}Summary/,$d' -e "s/ \{1,\}${prefix}/ /" -e 's/ \{1,\}/ /g' |
tail -n +2 |
cut -d' ' -f3 |
grep "^${exp}" |
sed -e 's/^/ /')
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment