From 823c410912cde9d6cf6503e4ec87bd31bfdb0792 Mon Sep 17 00:00:00 2001 From: Torsten Scheck Date: Wed, 10 Nov 2010 09:15:44 +0100 Subject: pmccabe2html: bug fixes: don't skip last input line; quote filename in shell command * build-aux/pmccabe2html: Fixed a off-by-one error, so last input line is also considered for output. Quoted function name in shell command, so temporary files for functions like MyClass::operator() are removed correctly without errors. Signed-off-by: Simon Josefsson --- build-aux/pmccabe2html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build-aux/pmccabe2html') diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html index 330b647547..1a4cdd1e21 100644 --- a/build-aux/pmccabe2html +++ b/build-aux/pmccabe2html @@ -144,7 +144,7 @@ function html_fnc_table (caption, num_lines_p, first_line_p, file_p) - for (nfnc = 1; nfnc < nfuncs; nfnc++) + for (nfnc = 1; nfnc <= nfuncs; nfnc++) { html_fnc(nfnc, fname_p, @@ -425,7 +425,7 @@ function html_fnc (nfun, print codeline } close(fname nfun "_fn.txt") - system("rm " fname nfun "_fn.txt") + system("rm " "'" fname "'" nfun "_fn.txt") print "" print "" print "" @@ -653,7 +653,7 @@ function wiki_fnc_table (caption, num_lines_p, first_line_p, file_p) - for (nfnc = 1; nfnc < nfuncs; nfnc++) + for (nfnc = 1; nfnc <= nfuncs; nfnc++) { wiki_fnc(nfnc, fname_p, -- cgit v1.2.1