Commit Graph

7 Commits

Author SHA1 Message Date
linear 2cdf23f692 doc/gen-man.sh: make sed command portable
usage of the "-i" feature of sed is not entirely portable across
different operating systems. -i has an optional extension to save
a backup of the edited file, and different systems parse this option
in a different manner.

the sed in GNU, busybox, NetBSD, and OpenBSD expects the argument
to be immediately after, like `-i.bak`, if it is present.

the sed in macOS and FreeBSD expects the argument to follow after
a space, like `-i .bak`, but will accept the `-i.bak` form as well.

the issue is that when no backup is specified, the first requires
just `-i`, where the second requires `-i ''`. the easiest way around
this is to just add a backup, which is what i chose to do here. i
also added the .bak extension to the .gitignore.

additionally, all aforementioned seds except for GNU require the file
to be the final argument, and will not accept it between other options.
2021-09-05 11:04:54 +02:00
Mike Skec 333332ac29 Man page generation script added
Not yet added to make target. ^Cy also need some improving.
2021-03-02 10:55:50 +01:00
Felix (xq) Queißner 67af296c10 Adds support for multimedia modules: Now can pla audio/ (tested) and video/ (untested). 2020-06-08 11:02:39 +02:00
Felix (xq) Queißner 77b2898109 Adds build helper. 2020-06-07 01:42:47 +02:00
Felix (xq) Queißner 850cd41dd8 Merge remote-tracking branch 'origin/master' 2020-05-30 19:56:02 +02:00
Felix Queißner 3f69de44ee
Initial commit 2020-05-30 19:54:15 +02:00
Felix (xq) Queißner 79ff338a34 Initial commit: Basic Gemini client. 2020-05-30 02:58:43 +02:00