Merge pull request #1202 from restic/fix-manpages
Fix manpages, update Go version
This commit is contained in:
commit
a3f6bf3e5a
25 changed files with 37 additions and 26 deletions
|
@ -3,6 +3,7 @@ sudo: false
|
|||
|
||||
go:
|
||||
- 1.8.3
|
||||
- 1.9
|
||||
- tip
|
||||
|
||||
os:
|
||||
|
@ -17,11 +18,13 @@ matrix:
|
|||
exclude:
|
||||
- os: osx
|
||||
go: tip
|
||||
- os: linux
|
||||
- os: osx
|
||||
go: 1.8.3
|
||||
- os: linux
|
||||
go: 1.9
|
||||
include:
|
||||
- os: linux
|
||||
go: 1.8.3
|
||||
go: 1.9
|
||||
sudo: true
|
||||
env:
|
||||
RESTIC_TEST_FUSE=1
|
||||
|
|
|
@ -17,8 +17,8 @@ init:
|
|||
|
||||
install:
|
||||
- rmdir c:\go /s /q
|
||||
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.8.3.windows-amd64.msi
|
||||
- msiexec /i go1.8.3.windows-amd64.msi /q
|
||||
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.9.windows-amd64.msi
|
||||
- msiexec /i go1.9.windows-amd64.msi /q
|
||||
- go version
|
||||
- go env
|
||||
- appveyor DownloadFile http://sourceforge.netcologne.de/project/gnuwin32/tar/1.13-1/tar-1.13-1-bin.zip -FileName tar.zip
|
||||
|
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/restic/restic/internal/errors"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -31,10 +32,17 @@ func init() {
|
|||
}
|
||||
|
||||
func runManpage(cmd *cobra.Command, args []string) error {
|
||||
// use a fixed date for the man pages so that generating them is deterministic
|
||||
date, err := time.Parse("Jan 2006", "Jan 2017")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
header := &doc.GenManHeader{
|
||||
Title: "restic backup",
|
||||
Section: "1",
|
||||
Source: "generated by `restic manpage`",
|
||||
Date: &date,
|
||||
}
|
||||
|
||||
dir := manpageOpts.OutputDir
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH "restic backup" "1" "Aug 2017" "generated by `restic manpage`" ""
|
||||
.TH "restic backup" "1" "Jan 2017" "generated by `restic manpage`" ""
|
||||
.nh
|
||||
.ad l
|
||||
|
||||
|
|
Loading…
Reference in a new issue