From e93d2d9801210e22781e9f7c9f147daff762e002 Mon Sep 17 00:00:00 2001 From: Harold Brenes Date: Mon, 7 Nov 2022 15:38:07 -0500 Subject: [PATCH] RC1 - fix C memory corruption when writing C tables Fix version extraction suffix issue --- VERSION | 3 ++- extract-version.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 227cea21..dbcb7da6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1,2 @@ -2.0.0 +2.0.1 +rc1 \ No newline at end of file diff --git a/extract-version.sh b/extract-version.sh index 5797c556..0f50751f 100755 --- a/extract-version.sh +++ b/extract-version.sh @@ -19,6 +19,11 @@ if [[ "$version_str" == "$bb_version_suffix" ]]; then bb_version_suffix= fi +# prepend a '-' to the suffix, if necessarry +if [[ -n "$bb_version_suffix" ]] && [[ "${bb_version_suffix:0:1}" != "-" ]]; then + bb_version_suffix="-${bb_version_suffix}" +fi + bb_ver_maj=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/' | xargs) bb_ver_min=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/' | xargs) bb_ver_rev=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/' | xargs)