Fix man page installation

* Fix wording in lines.1
This commit is contained in:
Dylan Lom 2021-02-22 22:30:34 +11:00
parent a124089295
commit ef891d2b66
2 changed files with 12 additions and 11 deletions

View File

@ -48,9 +48,9 @@ deb() {
bin
[ -d "$DEBDIR" ] && rm -f "$DISTDIR"
(set -x; mkdir -p "$DEBDIR/usr/bin"
mkdir -p "$DEBDIR/usr/share/man"
mkdir -p "$DEBDIR/usr/share/man/man1"
cp bin/* "$DEBDIR/usr/bin"
cp doc/* "$DEBDIR/usr/share/man"
cp doc/* "$DEBDIR/usr/share/man/man1"
cp -r pkgsrc/DEBIAN "$DEBDIR"
sed -i "s/%VERSION%/$VERSION/g" "$DEBDIR/DEBIAN/control"
dpkg-deb -b "$DEBDIR")

View File

@ -2,25 +2,26 @@
.SH NAME
line \- extract lines from input
.SH SYNOPSIS
.B line
.B lines
.IR [LINES...]
.SH DESCRIPTION
.B line
extracts lines from stdin. If multiple lines are provided, they will be sorted
numerically. If the same line is specified twice, it will only be extracted
once.
.B lines
extracts one or more lines from stdin. If multiple lines are provided, they will
be sorted numerically. If the same line is specified twice, it will only be
extracted once.
.SH EXAMPLES
Get the 3rd line from the file line.1
Get the 3rd line from the file lines.1
.PP
.nf
.RS
line 3 < line.1
lines 3 < lines.1
.RE
.fi
Get the 3rd, 4th and 5th lines from the file line.1
.PP
Get the 3rd, 4th and 5th lines from the file lines.1
.PP
.nf
.RS
line 3 5 4 < line.1
lines 3 5 4 < lines.1
.RE
.fi