summaryrefslogtreecommitdiffstats
path: root/compat/windows
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-08-24 23:04:38 +0300
committerMartin Storsjö <martin@martin.st>2017-08-31 14:22:15 +0300
commit44aa9105c535471ca9e23796d7ca29b341f47636 (patch)
treefaa6f41fd8d34dd16e7373988b8cf19742ad50e2 /compat/windows
parentabf1c058d1bd0ed1b820ea5e501a4484756f00b0 (diff)
downloadffmpeg-streaming-44aa9105c535471ca9e23796d7ca29b341f47636.zip
ffmpeg-streaming-44aa9105c535471ca9e23796d7ca29b341f47636.tar.gz
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'compat/windows')
-rwxr-xr-xcompat/windows/makedef8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/windows/makedef b/compat/windows/makedef
index fcaf108..b3de992 100755
--- a/compat/windows/makedef
+++ b/compat/windows/makedef
@@ -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
OpenPOWER on IntegriCloud