mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Include all aptly contributors in man section AUTHORS.
This commit is contained in:
+52
-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
|
||||
|
||||
|
||||
@@ -344,7 +344,7 @@ to proxy all HTTP requests.
|
||||
|
||||
## AUTHORS
|
||||
|
||||
Andrey Smirnov (me@smira.ru)
|
||||
{{authors}}
|
||||
|
||||
{{end}}
|
||||
|
||||
|
||||
+22
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user