From e7e2e4e17c5830f9ff40315106167579b48082d0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 26 Nov 2014 19:42:10 +0000 Subject: [PATCH] scripts/specialize-patch: Reduce noise in nightly build output git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5889 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 190c64967..dd0c842f2 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -545,11 +545,17 @@ BEGIN { reset_hunk_state_variables() match($0, "^@@ -([0-9]*),([0-9]*) \\+([0-9]*),([0-9]*) @@(.*)$", h) } - else if (delete_next_blank_line && match($0, "^+$")) + else if (delete_next_blank_line && $0 == "+") { discard = 1 delete_next_blank_line = 0 } + else if (lines >= 2 && !match(line[lines-2], ":$") && + line[lines-1] == "+\x9return;" && $0 == "+}") + { + line[lines-1] = $0 + lines_less_added++ + } else { delete_next_blank_line = 0