aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile11
-rw-r--r--src/alfsum.12
-rw-r--r--src/alfsum.rst3
-rw-r--r--src/unalf.12
-rw-r--r--src/unalf.rst3
-rw-r--r--src/ver.rst1
6 files changed, 15 insertions, 7 deletions
diff --git a/src/Makefile b/src/Makefile
index 2c8a31d..7dac912 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,7 @@
+VERSION=0.1.0
+
COPT=-O3
-CFLAGS=-Wall -Wno-unused-label -I../f65 $(COPT)
+CFLAGS=-DVERSION='"$(VERSION)"' -Wall -Wno-unused-label -I../f65 $(COPT)
all: unalf unalf.1 alfsum alfsum.1
@@ -24,10 +26,13 @@ extract.o: extract.c addrs.h unalf.h ../f65/f65.h
../f65/f65.o: ../f65/f65.c ../f65/f65.h
-unalf.1: unalf.rst
+ver.rst:
+ echo '.. |version| replace:: $(VERSION)' > ver.rst
+
+unalf.1: unalf.rst ver.rst
rst2man unalf.rst > unalf.1
-alfsum.1: alfsum.rst
+alfsum.1: alfsum.rst ver.rst
rst2man alfsum.rst > alfsum.1
clean:
diff --git a/src/alfsum.1 b/src/alfsum.1
index 1f4ec5b..969438f 100644
--- a/src/alfsum.1
+++ b/src/alfsum.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 "ALFSUM" 1 "2025-11-04" "0.0.0" "Urchlay's Atari 8-bit Tools"
+.TH "ALFSUM" 1 "2025-11-14" "0.1.0" "Urchlay's Atari 8-bit Tools"
.SH NAME
alfsum \- calculate ALF checksums
.\" RST source for alfsum(1) man page. Convert with:
diff --git a/src/alfsum.rst b/src/alfsum.rst
index 1d1ee87..f2be74e 100644
--- a/src/alfsum.rst
+++ b/src/alfsum.rst
@@ -1,7 +1,8 @@
.. RST source for alfsum(1) man page. Convert with:
.. rst2man.py alfsum.rst > alfsum.1
-.. |version| replace:: 0.0.0
+.. include:: ver.rst
+
.. |date| date::
======
diff --git a/src/unalf.1 b/src/unalf.1
index 99ed684..bf9c141 100644
--- a/src/unalf.1
+++ b/src/unalf.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 "UNALF" 1 "2025-11-14" "0.0.0" "Urchlay's Atari 8-bit Tools"
+.TH "UNALF" 1 "2025-11-14" "0.1.0" "Urchlay's Atari 8-bit Tools"
.SH NAME
unalf \- extract Atari 8-bit ALF archives
.\" RST source for unalf(1) man page. Convert with:
diff --git a/src/unalf.rst b/src/unalf.rst
index 64a0be5..bcb1c8a 100644
--- a/src/unalf.rst
+++ b/src/unalf.rst
@@ -1,7 +1,8 @@
.. RST source for unalf(1) man page. Convert with:
.. rst2man.py unalf.rst > unalf.1
-.. |version| replace:: 0.0.0
+.. include:: ver.rst
+
.. |date| date::
=====
diff --git a/src/ver.rst b/src/ver.rst
new file mode 100644
index 0000000..6b13b18
--- /dev/null
+++ b/src/ver.rst
@@ -0,0 +1 @@
+.. |version| replace:: 0.1.0