add localization generation and add to build system
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
/dist/
|
||||
/build/
|
||||
/localizations/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user