~adnano/gmnitohtml

b3379f9536a27b689e0a5bfe87c25aacf26e8b30 — Adnan Maolood 3 years ago 13bc50c
Rename to gmnitohtml
6 files changed, 19 insertions(+), 19 deletions(-)

M .gitignore
M Makefile
M README.md
R geminitohtml.1.scd => gmnitohtml.1.scd
M go.mod
M main.go
M .gitignore => .gitignore +2 -2
@@ 1,2 1,2 @@
geminitohtml
geminitohtml.1
gmnitohtml
gmnitohtml.1

M Makefile => Makefile +8 -8
@@ 9,24 9,24 @@ MANDIR?=$(PREFIX)/share/man
GO?=go
GOFLAGS?=

all: geminitohtml geminitohtml.1
all: gmnitohtml gmnitohtml.1

geminitohtml: main.go go.mod go.sum
gmnitohtml: main.go go.mod go.sum
	$(GO) build $(GOFLAGS) -o $@

geminitohtml.1: geminitohtml.1.scd
gmnitohtml.1: gmnitohtml.1.scd
	scdoc < $< > $@

clean:
	$(RM) geminitohtml geminitohtml.1
	$(RM) gmnitohtml gmnitohtml.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
	install -m755 gmnitohtml $(DESTDIR)$(BINDIR)/gmnitohtml
	install -m755 gmnitohtml.1 $(DESTDIR)$(MANDIR)/man1/gmnitohtml.1

uninstall:
	$(RM) $(DESTDIR)$(BINDIR)/geminitohtml
	$(RM) $(DESTDIR)$(MANDIR)/man1/geminitohtml.1
	$(RM) $(DESTDIR)$(BINDIR)/gmnitohtml
	$(RM) $(DESTDIR)$(MANDIR)/man1/gmnitohtml.1

.PHONY: all clean install uninstall

M README.md => README.md +3 -3
@@ 1,4 1,4 @@
# geminitohtml
# gmnitohtml

Gemini text to HTML converter.



@@ 16,8 16,8 @@ Then compile:

## Usage

See geminitohtml(1)
See gmnitohtml(1)

Example usage:

	geminitohtml < input.gmi > output.html
	gmnitohtml < input.gmi > output.html

R geminitohtml.1.scd => gmnitohtml.1.scd +4 -4
@@ 1,16 1,16 @@
geminitohtml(1)
gmnitohtml(1)

# NAME

geminitohtml - convert Gemini text to HTML
gmnitohtml - convert Gemini text to HTML

# SYNOPSIS

*geminitohtml* [-t _template_] < _input_
*gmnitohtml* [-t _template_] < _input_

# DESCRIPTION

The geminitohtml utility reads Gemini text from the standard input and writes HTML to the standard output.
The gmnitohtml utility reads Gemini text from the standard input and writes HTML to the standard output.

# OPTIONS


M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
module git.sr.ht/~adnano/geminitohtml
module gmnitohtml

go 1.15


M main.go => main.go +1 -1
@@ 1,4 1,4 @@
// Command geminitohtml is a Gemini text to HTML converter.
// Command gmnitohtml is a Gemini text to HTML converter.
package main

import (