aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-13 07:07:58 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-13 07:07:58 -0500
commitcefb2c5c9d1ebb0f75a58382324cbb2b9bfc4ad8 (patch)
treea1d8db3c2154313ee864014ee8f744f973f67928
parent049360816bd760d229463ed461b443b2a7d212fe (diff)
downloaduxd-cefb2c5c9d1ebb0f75a58382324cbb2b9bfc4ad8.tar.gz
parameterize VERSION in man page
-rw-r--r--Makefile5
-rw-r--r--uxd.12
-rw-r--r--uxd.rst3
-rw-r--r--ver.rst1
4 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0417ed8..8aa4cf2 100644
--- a/Makefile
+++ b/Makefile
@@ -41,8 +41,11 @@ test: uxd
man: uxd.1
-uxd.1: uxd.rst
+uxd.1: uxd.rst ver.rst
rst2man uxd.rst > uxd.1
+ver.rst:
+ echo '.. |version| replace:: $(VERSION)' > ver.rst
+
clean:
rm -f uxd
diff --git a/uxd.1 b/uxd.1
index 826f47f..af09f0a 100644
--- a/uxd.1
+++ b/uxd.1
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
-.TH "UXD" 1 "2024-12-13" "0.0.1" "Urchlay's Utilities"
+.TH "UXD" 1 "2024-12-13" "0.1.0" "Urchlay's Utilities"
.SH NAME
uxd \- UTF-8 hex dumper
.SH SYNOPSIS
diff --git a/uxd.rst b/uxd.rst
index 45c452e..c539fc8 100644
--- a/uxd.rst
+++ b/uxd.rst
@@ -1,4 +1,5 @@
-.. |version| replace:: 0.0.1
+.. include:: ver.rst
+
.. |date| date::
===
diff --git a/ver.rst b/ver.rst
new file mode 100644
index 0000000..6b13b18
--- /dev/null
+++ b/ver.rst
@@ -0,0 +1 @@
+.. |version| replace:: 0.1.0