about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile11
-rw-r--r--exman.151
2 files changed, 58 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2614ff2..20f9e81 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
 PREFIX = /usr/local
+SHAREDIR = ${PREFIX}/share
+MANDIR = ${SHAREDIR}/man
 
 CURL ?= curl
 TAR ?= tar
@@ -38,10 +40,11 @@ STRIP.posix = 1
 clean:
 	rm -fr ${SYSTEMS} *.tar
 
-install: exman ${SYSTEMS}
-	install -d ${PREFIX}/bin ${PREFIX}/share/exman
+install: exman exman.1 ${SYSTEMS}
+	install -d ${PREFIX}/bin ${MANDIR}/man1 ${SHAREDIR}/exman
 	install exman ${PREFIX}/bin
-	${TAR} -c -f - ${SYSTEMS} | ${TAR} -xo -f - -C ${PREFIX}/share/exman
+	gzip -c exman.1 > ${MANDIR}/man1/exman.1.gz
+	${TAR} -c -f - ${SYSTEMS} | ${TAR} -xo -f - -C ${SHAREDIR}/exman
 
 uninstall:
-	rm -fr ${PREFIX}/bin/exman ${PREFIX}/share/exman
+	rm -fr ${PREFIX}/bin/exman ${MANDIR}/man1/exman.1.gz ${SHAREDIR}/exman
diff --git a/exman.1 b/exman.1
new file mode 100644
index 0000000..8ab6976
--- /dev/null
+++ b/exman.1
@@ -0,0 +1,51 @@
+.Dd May  3, 2020
+.Dt EXMAN 1
+.Os
+.
+.Sh NAME
+.Nm exman
+.Nd display manuals for other systems
+.
+.Sh SYNOPSIS
+.Nm
+.Ar system
+.Op Ar options ...
+.Op Ar mansect
+.Ar page ...
+.
+.Sh DESCRIPTION
+The
+.Nm
+utility finds and displays online manual documentation pages
+for other systems.
+All arguments following
+.Ar system
+are passed to
+.Xr man 1 .
+.
+.Pp
+The available systems are as follows:
+.Bl -tag -width "freebsd"
+.It Sy freebsd
+.Fx 12.1-RELEASE
+.It Sy linux
+The Linux man-pages project 5.06
+.It Sy netbsd
+.Nx 9.0
+.It Sy openbsd
+.Ox 6.6
+.It Sy posix
+The Linux man-pages-posix project 2013-a
+.El
+.
+.Sh EXAMPLES
+.Bd -literal
+exman freebsd 4 unix
+exman linux 7 unix
+.Ed
+.
+.Sh SEE ALSO
+.Xr man 1
+.
+.Sh AUTHORS
+.An June Bug Aq Mt june@causal.agency
e McEnroe 2020-02-23Add This Is How You Lose the Time WarJune McEnroe 2020-02-22Add See Ya LaterJune McEnroe 2020-02-20Remove wiki scriptJune McEnroe Wikipedia seems to have removed the one-sentence extracts from the opensearch results. Too bad. It's not a wiki script, what we need is a command that fetches single-sentence summaries of articles on Wikipedia. 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe One from the cafe that caught my attention. 2020-02-12Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe