Changeset 18 in code


Ignore:
Timestamp:
Sep 23, 2023, 8:41:57 PM (21 months ago)
Author:
yakumo.izuru
Message:

SimplyTranslate broke the API again, also add another flavor

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

Location:
trunk
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r17 r18  
    22
    33GOARCH ?= amd64
    4 GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=$(VERSION) -X `go list`.Commit=$(COMMIT) -X `go list`.Build=$(BUILD)" -tags "static_build"
     4GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}" -tags "static_build"
    55GOOS ?= linux
    66
     
    1010VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
    1111
    12 build:
    13         go build $(GOFLAGS) ./cmd/suwako
    14         strip suwako
     12all: suwako suwako-mozhi
     13
     14suwako:
     15        go build ${GOFLAGS} ./cmd/suwako
     16suwako-mozhi:
     17        go build ${GOFLAGS} ./cmd/suwako-mozhi
    1518clean:
    16         rm -f suwako
     19        rm -f suwako suwako-mozhi
    1720install:
    1821        install -Dm0755 suwako ${PREFIX}/bin/suwako
     22        install -Dm0755 suwako-mozhi ${PREFIX}/bin/suwako-mozhi
    1923        install -Dm0644 suwako.1 ${PREFIX}/share/man/man1/suwako.1
    2024uninstall:
    2125        rm -f ${PREFIX}/bin/suwako
     26        rm -f ${PREFIX}/bin/suwako-mozhi
    2227        rm -f ${PREFIX}/share/man/man1/suwako.1
  • trunk/cmd/suwako/main.go

    r17 r18  
    2222)
    2323type Translate struct {
    24         Output string `json:"translated-text"`
     24        Output string `json:"translated_text"`
    2525}
    2626func init() {
  • trunk/suwako.1

    r17 r18  
    44.Sh NAME
    55.Nm suwako
    6 .Nd Command-line client for SimplyTranslate in Go
     6.Nd Command-line client for privacy friendly translation frontends
    77.Sh SYNOPSIS
    88.Nm
Note: See TracChangeset for help on using the changeset viewer.