cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 207a72012ef69de654a78e18d28182ecde1326e2
parent a3d5169d71f181efaa59a619e7362911a6c048b7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 20 Sep 2020 14:51:25 -0400

Rename binary from gmnic -> gmni

Diffstat:
MMakefile | 10+++++-----
Mconfigure | 6+++---
Adoc/gmni.scd | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ddoc/gmnic.scd | 65-----------------------------------------------------------------
Rsrc/gmnic.c -> src/gmni.c | 0
5 files changed, 73 insertions(+), 73 deletions(-)

diff --git 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 @@ doc/gmnic.1: doc/gmnic.scd @printf 'SCDOC\t$@\n' @$(SCDOC) < $< > $@ -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 @@ -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/gmni.scd b/doc/gmni.scd @@ -0,0 +1,65 @@ +gmni(1) + +# NAME + +gmni - Gemini client + +# SYNPOSIS + +*gmni* [-46lLiIN] [-E _path_] [-d _input_] [-D _path_] _gemini://..._ + +# DESCRIPTION + +*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 +with a non-zero exit status equal to the response status. If a response is +returned which is neither successful or an error, the response status and meta +text are printed to stderr. + +If the server requests user input, a prompt is shown and a second request is +performed with the user's input supplied to the server. + +# OPTIONS + +*-4* + Force the connection to use IPv4. + +*-6* + Force the connection to use IPv6. + +*-d* _input_ + If the server requests user input, a second request is performed with + the given input string as the user input. + +*-D* _path_ + If the server requests user input, _path_ is opened and read, and a + second request is performed with the contents of _path_ as the user + input. + +*-E* _path_[:_password_] + Sets the path to the client certificate to use (and optionally a + password). If the filename contains ":" but the certificate does not + accept a password, append ":" to the path and it will be intepreted as + an empty password. + +*-l* + 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. + +*-L* + Follow redirects. + +*-i* + Print the response status and meta text to stdout. + +*-I* + Print the response status and meta text to stdout, and suppress the + printing of the response body to stdout. + +*-N* + Suppress the input prompt if the server requests an input, and instead + print a diagnostic message and exit with a zero (successful) status + code. diff --git a/doc/gmnic.scd b/doc/gmnic.scd @@ -1,65 +0,0 @@ -gmnic(1) - -# NAME - -gmnic - Gemini client - -# SYNPOSIS - -*gmnic* [-46lLiIN] [-E _path_] [-d _input_] [-D _path_] _gemini://..._ - -# DESCRIPTION - -*gmnic* 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 -with a non-zero exit status equal to the response status. If a response is -returned which is neither successful or an error, the response status and meta -text are printed to stderr. - -If the server requests user input, a prompt is shown and a second request is -performed with the user's input supplied to the server. - -# OPTIONS - -*-4* - Force the connection to use IPv4. - -*-6* - Force the connection to use IPv6. - -*-d* _input_ - If the server requests user input, a second request is performed with - the given input string as the user input. - -*-D* _path_ - If the server requests user input, _path_ is opened and read, and a - second request is performed with the contents of _path_ as the user - input. - -*-E* _path_[:_password_] - Sets the path to the client certificate to use (and optionally a - password). If the filename contains ":" but the certificate does not - 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 - TTY and the response body does not include one. This flag suppresses - this behavior. - -*-L* - Follow redirects. - -*-i* - Print the response status and meta text to stdout. - -*-I* - Print the response status and meta text to stdout, and suppress the - printing of the response body to stdout. - -*-N* - Suppress the input prompt if the server requests an input, and instead - print a diagnostic message and exit with a zero (successful) status - code. diff --git a/src/gmnic.c b/src/gmni.c