changeset 90:82986500ae71 draft default tip

Update repository URLs
author yakumo.izuru
date Thu, 15 May 2025 01:25:32 +0000
parents 744541fee713
children
files Makefile README.md usage.go
diffstat 3 files changed, 13 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun May 04 02:19:10 2025 +0000
+++ b/Makefile	Thu May 15 01:25:32 2025 +0000
@@ -2,19 +2,22 @@
 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
--- a/README.md	Sun May 04 02:19:10 2025 +0000
+++ b/README.md	Thu May 15 01:25:32 2025 +0000
@@ -19,7 +19,7 @@
 
 	$ 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
--- a/usage.go	Sun May 04 02:19:10 2025 +0000
+++ b/usage.go	Thu May 15 01:25:32 2025 +0000
@@ -7,8 +7,8 @@
 // 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")