A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
+geminitohtml
+geminitohtml.1
A Makefile => Makefile +32 -0
@@ 0,0 1,32 @@
+.POSIX:
+.SUFFIXES:
+.SUFFIXES: .1 .1.scd
+
+PREFIX?=/usr/local
+BINDIR?=$(PREFIX)/bin
+MANDIR?=$(PREFIX)/share/man
+
+GO?=go
+GOFLAGS?=
+
+all: geminitohtml geminitohtml.1
+
+geminitohtml: main.go go.mod go.sum
+ $(GO) build $(GOFLAGS) -o $@
+
+geminitohtml.1: geminitohtml.1.scd
+ scdoc < $< > $@
+
+clean:
+ $(RM) geminitohtml geminitohtml.1
+
+install: all
+ mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+ install -m755 geminitohtml $(DESTDIR)$(BINDIR)/geminitohtml
+ install -m755 geminitohtml.1 $(DESTDIR)$(MANDIR)/man1/geminitohtml.1
+
+uninstall:
+ $(RM) $(DESTDIR)$(BINDIR)/geminitohtml
+ $(RM) $(DESTDIR)$(MANDIR)/man1/geminitohtml.1
+
+.PHONY: all clean install uninstall
A geminitohtml.1.scd => geminitohtml.1.scd +13 -0
@@ 0,0 1,13 @@
+geminitohtml(1)
+
+# NAME
+
+geminitohtml - convert Gemini text to HTML
+
+# SYNOPSIS
+
+_geminitohtml_
+
+# DESCRIPTION
+
+The geminitohtml utility reads Gemini text from the standard input and writes HTML to the standard output.