diff --git a/Makefile b/Makefile
index 0070b703ea0af36743878d2264259bc04edb6b70..d6b576c49053adcc21557a8d88137101deeb5846 100644
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,11 @@ OUTDIR=.build
include $(OUTDIR)/config.mk
include $(OUTDIR)/cppcache
-gmnic: $(gmnic_objects)
+gmni: $(gmni_objects)
@printf 'CCLD\t$@\n'
- @$(CC) $(LDFLAGS) $(LIBS) -o $@ $(gmnic_objects)
+ @$(CC) $(LDFLAGS) $(LIBS) -o $@ $(gmni_objects)
-doc/gmnic.1: doc/gmnic.scd
+doc/gmni.1: doc/gmni.scd
.SUFFIXES: .c .o .scd .1
@@ -23,10 +23,10 @@ .scd.1:
@printf 'SCDOC\t$@\n'
@$(SCDOC) < {body}lt; > $@
-docs: doc/gmnic.1
+docs: doc/gmni.1
clean:
- @rm -f gmnic
+ @rm -f gmni doc/gmni.1
distclean: clean
@rm -rf "$(OUTDIR)"
diff --git a/configure b/configure
index 680b57fc9e319c2707e0cc2ded0bc22597544d78..407886859d8ca0b9cbcb085ecef89d004c68cde4 100755
--- a/configure
+++ b/configure
@@ -3,13 +3,13 @@ srcdir=${SRCDIR:-$(dirname "$0")}
eval ". $srcdir/config.sh"
gmni() {
- genrules gmnic \
+ genrules gmni \
src/client.c \
src/escape.c \
- src/gmnic.c \
+ src/gmni.c \
src/url.c
}
-all="gmnic"
+all="gmni"
run_configure
diff --git a/doc/gmnic.scd b/doc/gmni.scd
rename from doc/gmnic.scd
rename to doc/gmni.scd
index 9eec29cfddf50c2678ef7ae080275fbfbe3fcaa1..0d84d4d974f2c38b426f6ae85d228cdd4847cbda 100644
--- a/doc/gmnic.scd
+++ b/doc/gmni.scd
@@ -1,16 +1,16 @@
-gmnic(1)
+gmni(1)
# NAME
-gmnic - Gemini client
+gmni - Gemini client
# SYNPOSIS
-*gmnic* [-46lLiIN] [-E _path_] [-d _input_] [-D _path_] _gemini://..._
+*gmni* [-46lLiIN] [-E _path_] [-d _input_] [-D _path_] _gemini://..._
# DESCRIPTION
-*gmnic* executes a gemini request and, if successful, prints the response body
+*gmni* executes a gemini request and, if successful, prints the response body
to stdout.
If an error is returned, information is printed to stderr and the process exits
@@ -45,7 +45,7 @@ accept a password, append ":" to the path and it will be intepreted as
an empty password.
*-l*
- For *text/\** responses, gmnic normally adds a line feed if stdout is a
+ For *text/\** responses, *gmni* normally adds a line feed if stdout is a
TTY and the response body does not include one. This flag suppresses
this behavior.
diff --git a/src/gmnic.c b/src/gmni.c
rename from src/gmnic.c
rename to src/gmni.c