From ef891d2b669960d36049ffcdbb7167e67e30d121 Mon Sep 17 00:00:00 2001 From: Dylan Lom Date: Mon, 22 Feb 2021 22:30:34 +1100 Subject: [PATCH] Fix man page installation * Fix wording in lines.1 --- build.sh | 4 ++-- doc/lines.1 | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/build.sh b/build.sh index 9c9c9ac..839ac41 100755 --- a/build.sh +++ b/build.sh @@ -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") diff --git a/doc/lines.1 b/doc/lines.1 index 77a0f60..5aa161f 100644 --- a/doc/lines.1 +++ b/doc/lines.1 @@ -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