From 28ce3606b9556a46f09f71d03698c0db55ff7218 Mon Sep 17 00:00:00 2001 From: "yakumo.izuru" Date: Thu, 15 May 2025 01:25:32 +0000 Subject: [PATCH] Update repository URLs git-svn-id: file:///srv/svn/repo/aya/trunk@91 cec141ff-132a-4243-88a5-ce187bd62f94 --- Makefile | 17 ++++++++++------- README.md | 2 +- usage.go | 4 ++-- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 70a47ba..96dd6b0 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,22 @@ DESTDIR ?= GO ?= go GOFLAGS ?= -v -buildvcs=false -buildmode=exe -ldflags "-w -X `${GO} list`.Date=${DATE} -X `${GO} list`.Vendor=${GOOS} -X `${GO} list`.Version=${VERSION}" PREFIX ?= /usr/local +BINDIR ?= ${PREFIX}/bin +MANDIR ?= ${PREFIX}/man DATE ?= `date -u +%F` GOOS ?= `${GO} env GOOS` -VERSION ?= 1.0F+${REV} +VERSION ?= 1.0G+${REV} REV ?= `svn info --show-item revision || git rev-list --all | wc -l` build: ${GO} build ${GOFLAGS} ./cmd/aya clean: rm -f aya -dist: - git archive --format=tar.gz --output=aya-${VERSION}.tar.gz HEAD +pre-install: + mkdir -p ${DESTDIR}${BINDIR} + mkdir -p ${DESTDIR}${MANDIR}/man1 install: - install -Dm0755 aya ${DESTDIR}${PREFIX}/bin/aya - install -Dm0644 aya.1 ${DESTDIR}${PREFIX}/share/man/man1/aya.1 + install -m0755 aya ${DESTDIR}${BINDIR} + install -m0644 aya.1 ${DESTDIR}${MANDIR}/man1 uninstall: - rm -f ${PREFIX}/bin/aya - rm -f ${PREFIX}/share/man/man1/aya.1 + rm -f ${DESTDIR}${BINDIR}/aya + rm -f ${DESTDIR}${MANDIR}/man1/aya.1 diff --git a/README.md b/README.md index ddc273c..c2d8c4c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Build it manually provided you have Go (>=1.17) installed: $ go install mahou-no-mori.yakumo.dev/aya/cmd/aya@latest (1) --- or --- - $ git clone https://git.yakumo.dev/yakumo.izuru/aya + $ git clone https://git.mentality.rip/novaburst/aya $ cd aya $ make # make install diff --git a/usage.go b/usage.go index 113bdf2..39bb434 100644 --- a/usage.go +++ b/usage.go @@ -7,8 +7,8 @@ import ( // This function is called by the `aya help` subcommand func PrintUsage() { fmt.Printf("aya/%v\n", PrintFullVersion()) - fmt.Println("Homepage: https://suzunaan.yakumo.dev/aya/") - fmt.Println("Repository: https://svn.yakumo.dev/yakumo.izuru/aya") + fmt.Println("Homepage: https://suzunaan.yakumo.dev/aya") + fmt.Println("Repository: https://svn.yakumo.dev/repo/aya") fmt.Println("==") fmt.Println("build [file] · (Re)build a site or a file in particular") fmt.Println("clean · Remove the generated .pub directory")