From bfb791e9b471dcea6629fa58cd222a1678b94065 Mon Sep 17 00:00:00 2001
From: Mark Wooding <mdw@distorted.org.uk>
Date: Fri, 23 Aug 2019 12:57:45 +0100
Subject: [PATCH] doc/sod.tex: Cope if `\pkgversion' isn't defined.

---
 doc/sod.tex | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/sod.tex b/doc/sod.tex
index 1203b68..c689bc9 100644
--- a/doc/sod.tex
+++ b/doc/sod.tex
@@ -53,6 +53,11 @@
 \let\indexstheadcase\relax
 \bibliographystyle{mdwalpha}
 
+\ifx\pkgversion\xxundefined
+  \immediate\typeout{WARNING: \string\pkgversion\ not defined}
+  \def\pkgversion{UNSET}
+\fi
+
 \title{A Sensible Object Design for C}
 \author{Mark Wooding}
 \date{\today; version \pkgversion}
-- 
2.11.0

