aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-03-03 18:22:02 +0100
committerTeddy Wing2018-03-03 18:22:02 +0100
commitaf1720c73402fbac95ce05a03acf153fdbf404b3 (patch)
tree19ebd2e7e4a24ea99db8e1b9a1bb342af036f2d4
parent094f65dc9966ffddc9798ed506de6c4e159d82af (diff)
downloadPassextract-af1720c73402fbac95ce05a03acf153fdbf404b3.tar.bz2
passextract.1: Make literals bold
To more clearly identify literals in "`literal`" blocks in the man page, make them bold by doing a simple text replacement on them. Note that this Makefile makes a `passextract.1` file at the root of the project. Need to fix that.
-rw-r--r--Makefile7
-rw-r--r--doc/passextract.16
2 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6ea628a..ec9e50a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,7 @@
+MAN_PAGE := doc/passextract.1.txt
+TRANSFORMED_MAN_PAGE := $(patsubst %,%.tmp,$(MAN_PAGE))
+
doc/passextract.1: doc/passextract.1.txt
- a2x --no-xmllint --format manpage $<
+ sed 's/`/*/g' $< > $(TRANSFORMED_MAN_PAGE) && \
+ a2x --no-xmllint --format manpage $(TRANSFORMED_MAN_PAGE) && \
+ rm $(TRANSFORMED_MAN_PAGE)
diff --git a/doc/passextract.1 b/doc/passextract.1
index cddc96f..8aa4f0b 100644
--- a/doc/passextract.1
+++ b/doc/passextract.1
@@ -102,7 +102,7 @@ Copy the currently selected line
.RE
.SH "EXAMPLES"
.sp
-Passextract can be invoked on its own or with the piped output of pass show\&.
+Passextract can be invoked on its own or with the piped output of \fBpass show\fR\&.
.sp
.if n \{\
.RS 4
@@ -115,7 +115,7 @@ $ passextract github\&.com
.RE
.\}
.sp
-The included Bash completion file provides the same tab completion options as pass show\&.
+The included Bash completion file provides the same tab completion options as \fBpass show\fR\&.
.SH "SHELL COMPLETION"
.sp
-Shell completion is provided to complete pass(1) files\&. To enable Bash completion, source the included passextract\&.bash\-completion file\&.
+Shell completion is provided to complete pass(1) files\&. To enable Bash completion, source the included \fBpassextract\&.bash\-completion\fR file\&.