Recently Written · git

sacc

Mirror of git://bitreich.org/sacc, the sacc gopher client from bitreich.org.

git clone https://github.com/equwal/sacc

Log | Files | Refs


commit 69ee789f16787da6a3065d911a44fc7d4991e366
Quentin Rameau <quinq@fifth.space>
2022-04-11 00:13:25 +0200

man: Add version

 Makefile | 2 +-
 sacc.1   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f988ebd..ce66b1b 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ install: $(BIN)
 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/
 	chmod 555 $(DESTDIR)$(PREFIX)/bin/$(BIN)
 	mkdir -p $(DESTDIR)$(MANDIR)
-	cp -f $(MAN) $(DESTDIR)$(MANDIR)
+	sed -e "s/%VERSION%/$(GETVER)/" $(MAN) > $(DESTDIR)$(MANDIR)/$(MAN)
 
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) $(DESTDIR)$(MANDIR)/$(MAN)
diff --git a/sacc.1 b/sacc.1
index 9b70dd5..8ff2bfa 100644
--- a/sacc.1
+++ b/sacc.1
@@ -1,4 +1,4 @@
-.TH SACC 1 2022-04-11
+.TH SACC 1 2022-04-11 %VERSION%
 .SH NAME
 sacc \- a terminal gopher client
 .SH SYNOPSIS