From 89bd4892b3f0dc2039bf1d02eabce5c7f1825585 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 12 Nov 2018 17:52:24 +0100 Subject: util/scripts/maintainers.go: Provide delimiters between maintainers Help automated tools make sense of the output. Instead of "[name 1 name 2 ]", it now prints "name 1 , name 2 ". As long as there are no commas in the maintainer names, they can be split easily. Change-Id: I4a254f566404b081a08923bc7ceb49f02039aa2a Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/29604 Reviewed-by: Stefan Reinauer Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- util/scripts/maintainers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/scripts') diff --git a/util/scripts/maintainers.go b/util/scripts/maintainers.go index 623562bd64..4d6cb7d822 100644 --- a/util/scripts/maintainers.go +++ b/util/scripts/maintainers.go @@ -20,6 +20,7 @@ import ( "os" "os/exec" "regexp" + "strings" ) type subsystem struct { @@ -151,7 +152,7 @@ func find_maintainer(fname string) { success = true fmt.Println(fname, "is in subsystem", subsystem.name) - fmt.Println("Maintainers: ", subsystem.maintainer) + fmt.Println("Maintainers: ", strings.Join(subsystem.maintainer, ", ")) } } if !success { -- cgit v1.2.3