From: Stephen Rothwell Date: Thu, 11 Sep 2025 05:34:32 +0000 (+1000) Subject: build_warn: automate plurals X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=9616beb1c08be558c77067a9abdd65400f7e2097;p=next-scripts build_warn: automate plurals --- 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" <