From 9616beb1c08be558c77067a9abdd65400f7e2097 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 11 Sep 2025 15:34:32 +1000 Subject: [PATCH] build_warn: automate plurals --- build_warn | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build_warn b/build_warn index 67a430b..1b3e06a 100755 --- a/build_warn +++ b/build_warn @@ -1,10 +1,19 @@ #!/bin/bash -subject="build warning after merge of the BRANCH tree" +w='warning' +t='this' +if [ "X$1" = 'X-p' ]; then + w='warnings' + t='these' + plural=true + shift +fi + +subject="build $w after merge of the BRANCH tree" tools_dir=$(dirname "$0") "$tools_dir"/message_helper "$@" "$subject" <