$OpenBSD: patch-build-aux_gen-version,v 1.2 2018/09/09 15:25:31 sthen Exp $
Index: build-aux/gen-version
--- build-aux/gen-version.orig
+++ build-aux/gen-version
@@ -7,6 +7,12 @@ if [ ! -z "$BUILDER_VERSION" ]; then
 fi
 
 VERSION="unknown"
+if [ -f .version ]; then
+  VERSION="$(cat .version)"
+fi
+printf $VERSION
+exit 0
+
 
 DIRTY=""
 git status | grep -q clean || DIRTY='.dirty'
