From f1f66c633197b1a52f6a69fee376b57aeba49cd9 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 30 Apr 2023 01:47:27 +0000 Subject: [PATCH] Fix the Makefile by sourcing tools/env.sh if TELODENDRIA_ENV is unset. --- tools/bin/td | 4 ++++ tools/env.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tools/bin/td b/tools/bin/td index bc0603a..a1d7660 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -11,6 +11,10 @@ # handle building the code, it also handles formatting it, as well # as generating patch files. +if [ -z "$TELODENDRIA_ENV" ]; then + . tools/env.sh +fi + # # Set variables # diff --git a/tools/env.sh b/tools/env.sh index fcba733..dfa4355 100644 --- a/tools/env.sh +++ b/tools/env.sh @@ -39,3 +39,6 @@ if [ "$(uname)" = "OpenBSD" ]; then # flags. export MALLOC_OPTIONS="CFGJSU" fi + +export TELODENDRIA_ENV=1 +