summaryrefslogtreecommitdiff
path: root/include/err.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/err.sh')
-rwxr-xr-xinclude/err.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/err.sh b/include/err.sh
index d4f8700b..097d4230 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -5,7 +5,7 @@ export LC_COLLATE=C
export LC_ALL=C
version=""; versiondate=""; projectname=""; _nogit=""
-err="err_"; tmpdir=""
+err="err_"; tmpdir=""; release_type=""
# if "y": a coreboot target won't be built if target.cfg says release="n"
# (this is used to exclude certain build targets from releases)
@@ -15,6 +15,17 @@ set | grep LBMK_RELEASE 1>/dev/null 2>/dev/null || lbmk_release="n" || :
[ "$lbmk_release" = "n" ] || [ "$lbmk_release" = "y" ] || lbmk_release="n"
export LBMK_RELEASE="$lbmk_release"
+# valid values:
+# empty / not set
+# value: stable
+# value: unstable
+# e.g. export LBMK_VERSION_TYPE=stable
+set | grep LBMK_VERSION_TYPE 1>/dev/null 2>/dev/null && \
+ release_type="$LBMK_VERSION_TYPE"
+[ -z "$release_type" ] || [ "$release_type" = "stable" ] || \
+ [ "$release_type" = "unstable" ] || release_type=""
+export LBMK_VERSION_TYPE="$release_type"
+
tmpdir_was_set="y"
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
if [ "${tmpdir_was_set}" = "y" ]; then