もっと頑張れよ、魔理沙
git-svn-id: file:///srv/svn/repo/marisa/trunk@69 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
parent
7dd0415885
commit
65ffd37fbe
2
COPYING
2
COPYING
@ -1,5 +1,5 @@
|
||||
Copyright (c) 2021 Willy Goiffon <contact@z3bra.org>
|
||||
Copyright (c) 2023-present Izuru Yakumo <postmaster@chaotic.ninja>
|
||||
Copyright (c) 2023-present Izuru Yakumo <eternal-servant@yakumo.dev>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
|
16
Makefile
16
Makefile
@ -1,25 +1,21 @@
|
||||
GO ?= go
|
||||
GOFLAGS ?= -v -ldflags "-w -X `go list`.Version=${VERSION} -X `go list`.Commit=${COMMIT} -X `go list`.Build=${BUILD}"
|
||||
GOFLAGS ?= -v -ldflags "-w -X `${GO} list`.Version=${VERSION}"
|
||||
CGO ?= 0
|
||||
|
||||
VERSION = `git describe --abbrev=0 --tags 2>/dev/null || echo "$VERSION"`
|
||||
COMMIT = `git rev-parse --short HEAD || echo "$COMMIT"`
|
||||
BRANCH = `git rev-parse --abbrev-ref HEAD`
|
||||
BUILD = `git show -s --pretty=format:%cI`
|
||||
|
||||
VERSION = 2024.02.10
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
all: marisa marisa-trash
|
||||
|
||||
marisa:
|
||||
CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/marisa
|
||||
CGO_ENABLED=${CGO} ${GO} build ${GOFLAGS} ./cmd/marisa
|
||||
marisa-trash:
|
||||
CGO_ENABLED=${CGO} go build ${GOFLAGS} ./cmd/marisa-trash
|
||||
CGO_ENABLED=${CGO} ${GO} build ${GOFLAGS} ./cmd/marisa-trash
|
||||
clean:
|
||||
rm -f marisa marisa-trash
|
||||
install:
|
||||
install -Dm0755 marisa ${PREFIX}/bin/marisa
|
||||
install -Dm0755 marisa-trash ${PREFIX}/bin/marisa-trash
|
||||
install -Dm0644 marisa.1 ${PREFIX}/share/man/man1/marisa.1
|
||||
install -Dm0644 marisa.conf.5 ${PREFIX}/share/man/man5/marisa.conf.5
|
||||
install -Dm0644 marisa.1 ${PREFIX}/man/man1/marisa.1
|
||||
install -Dm0644 marisa.conf.5 ${PREFIX}/man/man5/marisa.conf.5
|
||||
.PHONY: marisa marisa-trash
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"marisa.chaotic.ninja/marisa"
|
||||
"mahou-no-mori.yakumo.dev/marisa"
|
||||
)
|
||||
|
||||
type templatedata struct {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module marisa.chaotic.ninja/marisa
|
||||
module mahou-no-mori.yakumo.dev/marisa
|
||||
|
||||
go 1.17
|
||||
|
||||
|
@ -41,4 +41,4 @@ Lookup metadata files in directory
|
||||
.An Willy Goiffon Aq Mt dev@z3bra.org
|
||||
.Pp
|
||||
"Borrowed" by
|
||||
.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
|
||||
.An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
|
||||
|
2
marisa.1
2
marisa.1
@ -33,7 +33,7 @@ Load configuration from
|
||||
.An Willy Goiffon Aq Mt dev@z3bra.org
|
||||
.Pp
|
||||
"Borrowed" by
|
||||
.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
|
||||
.An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
|
||||
.Sh BUGS
|
||||
If you upload a file through the browser, and refresh the
|
||||
page, the file will get constantly reuploaded, which may
|
||||
|
@ -91,4 +91,4 @@ types { include "/usr/share/misc/mime.types" }
|
||||
.An Willy Goiffon Aq Mt dev@z3bra.org
|
||||
.Pp
|
||||
"Borrowed" by
|
||||
.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
|
||||
.An Izuru Yakumo Aq Mt eternal-servant@yakumo.dev
|
||||
|
@ -7,12 +7,9 @@ import (
|
||||
var (
|
||||
// Version release version
|
||||
Version = "0.0.1"
|
||||
|
||||
// Commit will be overwritten automatically by the build system
|
||||
Commit = "HEAD"
|
||||
)
|
||||
|
||||
// FullVersion display the full version and build
|
||||
func FullVersion() string {
|
||||
return fmt.Sprintf("%s@%s", Version, Commit)
|
||||
return fmt.Sprintf("%s", Version)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user