Browse Source

rename to cgmnlm

remotes/src/master
René Wagner 6 months ago
parent
commit
3ce02e5183
  1. 16
      Makefile
  2. 28
      README.md
  3. BIN
      cgmnlm
  4. 2
      config.sh
  5. 8
      configure
  6. 6
      doc/cgmnlm.scd
  7. 0
      src/cgmnlm.c

16
Makefile

@ -9,16 +9,16 @@ gmni: $(gmni_objects)
@printf 'CCLD\t$@\n'
@$(CC) $(LDFLAGS) -o $@ $(gmni_objects) $(LIBS)
gmnlm: $(gmnlm_objects)
cgmnlm: $(cgmnlm_objects)
@printf 'CCLD\t$@\n'
@$(CC) $(LDFLAGS) -o $@ $(gmnlm_objects) $(LIBS)
@$(CC) $(LDFLAGS) -o $@ $(cgmnlm_objects) $(LIBS)
libgmni.a: $(libgmni.a_objects)
@printf 'AR\t$@\n'
@$(AR) -rcs $@ $(libgmni.a_objects)
doc/gmni.1: doc/gmni.scd
doc/gmnlm.1: doc/gmnlm.scd
doc/cgmnlm.1: doc/cgmnlm.scd
libgmni.pc:
@printf 'GEN\t$@\n'
@ -46,10 +46,10 @@ libgmni.pc:
@printf 'SCDOC\t$@\n'
@$(SCDOC) < $< > $@
docs: doc/gmni.1 doc/gmnlm.1
docs: doc/gmni.1 doc/cgmnlm.1
clean:
@rm -f gmni gmnlm libgmni.a libgmni.pc doc/gmni.1 doc/gmnlm.1 $(gmnlm_objects) $(gmni_objects)
@rm -f gmni cgmnlm libgmni.a libgmni.pc doc/gmni.1 doc/cgmnlm.1 $(cgmnlm_objects) $(gmni_objects)
distclean: clean
@rm -rf "$(OUTDIR)"
@ -60,7 +60,7 @@ install: all install_docs
mkdir -p $(INCLUDEDIR)/gmni
mkdir -p $(LIBDIR)/pkgconfig
install -m755 gmni $(BINDIR)/gmni
install -m755 gmnlm $(BINDIR)/gmnlm
install -m755 cgmnlm $(BINDIR)/cgmnlm
install -m755 libgmni.a $(LIBDIR)/libgmni.a
install -m644 include/gmni/gmni.h $(INCLUDEDIR)/gmni/gmni.h
install -m644 include/gmni/tofu.h $(INCLUDEDIR)/gmni/tofu.h
@ -69,11 +69,11 @@ install: all install_docs
uninstall:
rm -f $(BINDIR)/gmni
rm -f $(BINDIR)/gmnlm
rm -f $(BINDIR)/cgmnlm
rm -f $(LIBDIR)/libgmni.a
rm -rf $(INCLUDEDIR)/gmni
rm -f $(LIBDIR)/pkgconfig/libgmni.pc
rm -f $(MANDIR)/man1/gmni.1
rm -f $(MANDIR)/man1/gmnlm.1
rm -f $(MANDIR)/man1/cgmnlm.1
.PHONY: clean distclean docs install

28
README.md

@ -1,23 +1,29 @@
# gmni - A Gemini client
# cgmnlm - A colorful Gemini line mode client
This is a [Gemini](https://gemini.circumlunar.space/) client. Included are:
- A CLI utility (like curl): gmni
- A [line-mode browser](https://en.wikipedia.org/wiki/Line_Mode_Browser): gmnlm
- A [line-mode browser](https://en.wikipedia.org/wiki/Line_Mode_Browser): cgmnlm
Dependencies:
- A POSIX-like system and a C11 compiler
- OpenSSL
- [scdoc](https://sr.ht/~sircmpwn/scdoc/) (optional)
Features:
## Features:
- Page history
- Regex searches
- Bookmarks
[![Screenshot of the line-mode browser](https://l.sr.ht/7kaA.png)](https://asciinema.org/a/Y7viodM01e0AXYyf40CwSLAVA)
### Modifications compared to upstream
This project is of fork of https://git.sr.ht/~sircmpwn/gmni
It includes the following modifications:
- default 4 char indenting
- colored headings & links
## Dependencies:
- A POSIX-like system and a C11 compiler
- OpenSSL
- [scdoc](https://sr.ht/~sircmpwn/scdoc/) (optional)
## Compiling
@ -30,4 +36,4 @@ $ make
## Usage
See `gmni(1)`, `gmnlm(1)`.
See `gmni(1)`, `cgmnlm(1)`.

BIN
cgmnlm

2
config.sh

@ -128,7 +128,7 @@ run_configure() {
install_docs="
mkdir -p \$(MANDIR)/man1
install -m644 doc/gmni.1 \$(MANDIR)/man1/gmni.1
install -m644 doc/gmnlm.1 \$(MANDIR)/man1/gmnlm.1"
install -m644 doc/cgmnlm.1 \$(MANDIR)/man1/cgmnlm.1"
else
echo no
fi

8
configure

@ -12,11 +12,11 @@ gmni() {
src/util.c
}
gmnlm() {
genrules gmnlm \
cgmnlm() {
genrules cgmnlm \
src/client.c \
src/escape.c \
src/gmnlm.c \
src/cgmnlm.c \
src/parser.c \
src/tofu.c \
src/url.c \
@ -37,7 +37,7 @@ libgmni_pc() {
:
}
all="gmni gmnlm libgmni.a libgmni.pc"
all="gmni cgmnlm libgmni.a libgmni.pc"
run_configure

6
doc/gmnlm.scd → doc/cgmnlm.scd

@ -2,15 +2,15 @@ gmnlm(1)
# NAME
gmnlm - Gemini line-mode browser
cgmnlm - colored Gemini line-mode browser
# SYNPOSIS
*gmnlm* [-PU] [-j _mode_] [-W _width_] _gemini://..._
*cgmnlm* [-PU] [-j _mode_] [-W _width_] _gemini://..._
# DESCRIPTION
*gmnlm* is an interactive line-mode Gemini browser.
*cgmnlm* is an interactive line-mode Gemini browser.
# OPTIONS

0
src/gmnlm.c → src/cgmnlm.c

Loading…
Cancel
Save