]> git.ozlabs.org Git - next-scripts/commitdiff
build_warn: automate plurals master
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Sep 2025 05:34:32 +0000 (15:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Sep 2025 05:34:32 +0000 (15:34 +1000)
build_warn

index 67a430b5cebe3867d8edb5739ec7e635205a454e..1b3e06abf35376f3f2b05e5279981aaf8de996e8 100755 (executable)
@@ -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" <<EOF
-After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME) produced this warning:
+After merging the BRANCH tree, today's linux-next build (KCONFIG_NAME) produced $t $w:
 
 
 Introduced by commit