mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +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
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ to proxy all HTTP requests.
|
|||||||
|
|
||||||
## AUTHORS
|
## AUTHORS
|
||||||
|
|
||||||
Andrey Smirnov (me@smira.ru)
|
{{authors}}
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|||||||
+22
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user