echo MESON_SOURCE_ROOT=$MESON_SOURCE_ROOT
echo MESON_PROJECT_DIST_ROOT=$MESON_PROJECT_DIST_ROOT
+if [ -z "${BUILDER_VERSION}" ]; then
+ echo "BUILDER_VERSION is not set" >&2
+ exit 1
+fi
+
cd "$MESON_PROJECT_DIST_ROOT"
# Get all symlinks
# Run autoconf for people using autotools to build, this creates a configure sc
autoreconf -vi
rm -rf "$MESON_PROJECT_DIST_ROOT"/autom4te.cache
+echo Updating the version of the Rust library to ${BUILDER_VERSION}
+"$MESON_SOURCE_ROOT"/../../builder-support/helpers/update-rust-library-version.py "$MESON_PROJECT_DIST_ROOT"/rec-rust-lib/rust/Cargo.toml recrust ${BUILDER_VERSION}
cd "$MESON_PROJECT_BUILD_ROOT"
[package]
name = "recrust"
+edition = "2021"
# Convention: major/minor is equal to rec's major/minor
+# Note that this line will be automatically updated to the value
+# BUILDER_VERSION when a release tarball is built
+# See builder-support/helpers/update-rust-library-version.py
+# called from meson-dist-script.sh
version = "5.4.0"
-edition = "2021"
[lib]
name = "recrust"