diff --git a/man/aptly.1 b/man/aptly.1 index ae0637fe..2fc2d03a 100644 --- a/man/aptly.1 +++ b/man/aptly.1 @@ -1755,4 +1755,55 @@ general failure command parse failure . .SH "AUTHORS" -Andrey Smirnov (me@smira\.ru) +List of contributors, in chronological order: +. +.IP "\[ci]" 4 +Andrey Smirnov (https://github\.com/smira) +. +.IP "\[ci]" 4 +Sebastien Binet (https://github\.com/sbinet) +. +.IP "\[ci]" 4 +Ryan Uber (https://github\.com/ryanuber) +. +.IP "\[ci]" 4 +Simon Aquino (https://github\.com/queeno) +. +.IP "\[ci]" 4 +Vincent Batoufflet (https://github\.com/vbatoufflet) +. +.IP "\[ci]" 4 +Ivan Kurnosov (https://github\.com/zerkms) +. +.IP "\[ci]" 4 +Dmitrii Kashin (https://github\.com/freehck) +. +.IP "\[ci]" 4 +Chris Read (https://github\.com/cread) +. +.IP "\[ci]" 4 +Rohan Garg (https://github\.com/shadeslayer) +. +.IP "\[ci]" 4 +Russ Allbery (https://github\.com/rra) +. +.IP "\[ci]" 4 +Sylvain Baubeau (https://github\.com/lebauce) +. +.IP "\[ci]" 4 +Andrea Bernardo Ciddio (https://github\.com/bcandrea) +. +.IP "\[ci]" 4 +Michael Koval (https://github\.com/mkoval) +. +.IP "\[ci]" 4 +Alexander Guy (https://github\.com/alexanderguy) +. +.IP "\[ci]" 4 +Sebastien Badia (https://github\.com/sbadia) +. +.IP "\[ci]" 4 +Szymon Sobik (https://github\.com/sobczyk) +. +.IP "" 0 + diff --git a/man/aptly.1.ronn.tmpl b/man/aptly.1.ronn.tmpl index fee17971..a85b93dd 100644 --- a/man/aptly.1.ronn.tmpl +++ b/man/aptly.1.ronn.tmpl @@ -344,7 +344,7 @@ to proxy all HTTP requests. ## AUTHORS -Andrey Smirnov (me@smira.ru) +{{authors}} {{end}} diff --git a/man/gen.go b/man/gen.go index 0bc9e238..0718940e 100644 --- a/man/gen.go +++ b/man/gen.go @@ -5,6 +5,7 @@ import ( "github.com/smira/aptly/cmd" "github.com/smira/commander" "github.com/smira/flag" + "io/ioutil" "log" "os" "os/exec" @@ -43,6 +44,12 @@ func capitalize(s string) string { return strings.Join(parts, " ") } +var authorsS string + +func authors() string { + return authorsS +} + func main() { command := cmd.RootCommand() command.UsageLine = "aptly" @@ -56,9 +63,24 @@ func main() { "findCommand": findCommand, "toUpper": strings.ToUpper, "capitalize": capitalize, + "authors": authors, }) template.Must(templ.ParseFiles(filepath.Join(filepath.Dir(_File), "aptly.1.ronn.tmpl"))) + authorsF, err := os.Open(filepath.Join(filepath.Dir(_File), "..", "AUTHORS")) + if err != nil { + log.Fatal(err) + } + + authorsB, err := ioutil.ReadAll(authorsF) + if err != nil { + log.Fatal(err) + } + + authorsF.Close() + + authorsS = string(authorsB) + output, err := os.Create(filepath.Join(filepath.Dir(_File), "aptly.1.ronn")) if err != nil { log.Fatal(err)