From cefb2c5c9d1ebb0f75a58382324cbb2b9bfc4ad8 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 13 Dec 2024 07:07:58 -0500 Subject: parameterize VERSION in man page --- Makefile | 5 ++++- uxd.1 | 2 +- uxd.rst | 3 ++- ver.rst | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 ver.rst 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 -- cgit v1.2.3