diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .goreleaser.yml | 1 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | comitium.go | 3 |
4 files changed, 7 insertions, 0 deletions
@@ -1,2 +1,3 @@ /dist/ /build/ +/localizations/ diff --git a/.goreleaser.yml b/.goreleaser.yml index 10581aa..8207933 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ before: hooks: + - go generate ./... - scdoc < doc/comitium.1.scd > dist/comitum.1 - mv dist/comitium.1 /home/alex/projects/gemini.nytpu.com/releases/comitium/{{ .Version }} builds: @@ -46,6 +46,7 @@ $(BUILDDIR): $(BUILDDIR)/$(NAME): $(GOSRC) | $(BUILDDIR) + $(GO) generate ./... $(GO) build $(GOFLAGS) -ldflags "$(GOLDFLAGS)" -o $@ @@ -55,6 +56,7 @@ $(BUILDDIR)/%.1: doc/%.1.scd | $(BUILDDIR) clean: -$(RM) -r $(BUILDDIR) + -$(RM) -r localizations install: all diff --git a/comitium.go b/comitium.go index 6ab845f..5756098 100644 --- a/comitium.go +++ b/comitium.go @@ -6,6 +6,9 @@ // doc/comitium.1.scd for a manual page. package main +// generate the translations: +//go:generate go-localize -input localizations_src -output localizations + import ( "fmt" "net/url" |
