Commit Diff


commit - bb572a81e5b99e4f8fbabb4be842cb823be20de6
commit + fc7d38e3ca8a449df04dea2a97e6fc28a175c3db
blob - c1db4ee7ba37eb602bebdde015a9418a06242de6
blob + 260330f9657045166ee87fff0b43be01721b8806
--- Makefile
+++ Makefile
@@ -2,7 +2,7 @@
 # See LICENSE file for copyright and license details.
 .POSIX:
 
-VERSION = 0.1
+VERSION = 0.1.2
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man
 CFLAGS = -pipe -O2 -Wall -Werror
@@ -19,7 +19,7 @@ install: lsblk
 	mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man8
 	cp -f lsblk ${DESTDIR}${PREFIX}/bin
 	chmod 755 ${DESTDIR}${PREFIX}/bin/lsblk
-	cp -f lsblk.8 ${DESTDIR}${MANPREFIX}/man8
+	sed "s/@VERSION@/${VERSION}/" lsblk.8 > ${DESTDIR}${MANPREFIX}/man8/lsblk.8
 
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/lsblk
blob - ca7156467d90f02b72e04e19b82d8915333f8400
blob + 294c6eee9fa9fdf54c5bd5a7da3670f8c5d31a71
--- lsblk.8
+++ lsblk.8
@@ -11,14 +11,18 @@
 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.TH LSBLK 8 lsblk-0.1 2023-04-08
+.TH LSBLK 8 lsblk-@VERSION@ 2023-04-08
 .SH NAME
 lsblk \- list block devices
 .SH SYNOPSIS
-.B lsblk
+.B lsblk [-V]
 .SH DESCRIPTION
 The
 .B lsblk
 utilit can be used to examine the attached block devices on the system.
+.SH OPTIONS
+.TP
+.B \-v
+prints version information to stderr, then exits.
 .SH SEE ALSO
 .BR disklabel (8)