Include all aptly contributors in man section AUTHORS.

This commit is contained in:
Andrey Smirnov
2015-07-04 13:16:15 +03:00
parent 205297d0b8
commit 698e239f45
3 changed files with 75 additions and 2 deletions
+52 -1
View File
@@ -1755,4 +1755,55 @@ general failure
command parse failure command parse failure
. .
.SH "AUTHORS" .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
+1 -1
View File
@@ -344,7 +344,7 @@ to proxy all HTTP requests.
## AUTHORS ## AUTHORS
Andrey Smirnov (me@smira.ru) {{authors}}
{{end}} {{end}}
+22
View File
@@ -5,6 +5,7 @@ import (
"github.com/smira/aptly/cmd" "github.com/smira/aptly/cmd"
"github.com/smira/commander" "github.com/smira/commander"
"github.com/smira/flag" "github.com/smira/flag"
"io/ioutil"
"log" "log"
"os" "os"
"os/exec" "os/exec"
@@ -43,6 +44,12 @@ func capitalize(s string) string {
return strings.Join(parts, " ") return strings.Join(parts, " ")
} }
var authorsS string
func authors() string {
return authorsS
}
func main() { func main() {
command := cmd.RootCommand() command := cmd.RootCommand()
command.UsageLine = "aptly" command.UsageLine = "aptly"
@@ -56,9 +63,24 @@ func main() {
"findCommand": findCommand, "findCommand": findCommand,
"toUpper": strings.ToUpper, "toUpper": strings.ToUpper,
"capitalize": capitalize, "capitalize": capitalize,
"authors": authors,
}) })
template.Must(templ.ParseFiles(filepath.Join(filepath.Dir(_File), "aptly.1.ronn.tmpl"))) 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")) output, err := os.Create(filepath.Join(filepath.Dir(_File), "aptly.1.ronn"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)