This avoids redoing them for each expression in the list.
Signed-off-by: Martin Storsjö <martin@martin.st>
'
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}
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