From: Sebastian Pipping Date: Mon, 30 May 2016 18:56:00 +0000 (+0200) Subject: qa.sh: Merge callgraphs into one X-Git-Tag: R_2_2_0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f32e06fe6b05a5dd16f7e8d96895566e23f6463a;p=libexpat qa.sh: Merge callgraphs into one --- diff --git a/expat/.gitignore b/expat/.gitignore index 7db88355..a619cccd 100755 --- a/expat/.gitignore +++ b/expat/.gitignore @@ -25,4 +25,4 @@ expat.pc *.gcov *.nccout *.expand -/callgraph--* +/callgraph.svg diff --git a/expat/qa.sh b/expat/qa.sh index 464eac2d..e275021b 100755 --- a/expat/qa.sh +++ b/expat/qa.sh @@ -17,14 +17,17 @@ set -o nounset : ${BASE_FLAGS:="-pipe -Wall -Wextra -pedantic -Wno-overlength-strings"} -RUN() { +ANNOUNCE() { local open='\e[1m' local close='\e[0m' echo -e -n "${open}" echo -n "# $*" echo -e "${close}" +} +RUN() { + ANNOUNCE "$@" env "$@" } @@ -102,14 +105,14 @@ main() { ;; egypt) local DOT_FORMAT="${DOT_FORMAT:-svg}" - local i=, o= - while read i ; do - o="${i##./}"; - o="callgraph--${o//\//--}" - o="${o%.c.*.expand}"; - o="${o//./_}.${DOT_FORMAT}" - egypt "${i}" | dot -Grankdir=LR "-T${DOT_FORMAT}" > "${o}" - done < <(find -name '*.expand') + local o="callgraph.${DOT_FORMAT}" + ANNOUNCE "egypt ...... | dot ...... > ${o}" + find -name '*.expand' \ + | sort \ + | xargs -r egypt \ + | unflatten -c 20 \ + | dot -T${DOT_FORMAT} -Grankdir=LR \ + > "${o}" ;; ncc) RUN nccnav ./.libs/libexpat.a.nccout