From 44aa9105c535471ca9e23796d7ca29b341f47636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 24 Aug 2017 23:04:38 +0300 Subject: makedef: Fold as much text transformations as possible into the initial dump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids redoing them for each expression in the list. Signed-off-by: Martin Storsjö --- compat/windows/makedef | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'compat/windows') 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 -- cgit v1.1