From d89f64cb54d74aad3117c7b38229568e1ef2bde6 Mon Sep 17 00:00:00 2001
From: Glen Barber <gjb@FreeBSD.org>
Date: Wed, 30 Dec 2020 23:24:38 -0500
Subject: [PATCH] docbuild: source 'local.conf' for machine-specific variables
 if exists

Sponsored by:	Rubicon Communications, LLC (netgate.com)
---
 share/tools/dobuild_wrap.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/share/tools/dobuild_wrap.sh b/share/tools/dobuild_wrap.sh
index c62dfa7bfc..83d84ed37a 100755
--- a/share/tools/dobuild_wrap.sh
+++ b/share/tools/dobuild_wrap.sh
@@ -29,6 +29,10 @@
 # Wrapper around doc build.  Simplifies main build script.
 # NOTE: This script is not automatically updated on the builder.
 
+if [ -f "${PWD}/local.conf" ]; then
+	. ${PWD}/local.conf
+fi
+
 #
 # Default configuration.
 #