From 2475c7d9973c46f7069ce9a85f7c68751a433c25 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Thu, 5 Sep 2024 18:23:33 +0100 Subject: [PATCH] Set RELEASE_TYPE --- src/new_build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/new_build.sh b/src/new_build.sh index 23df685..ba9e357 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -34,6 +34,7 @@ # - `repo init` # - `repo sync` # - setup our overlays +# - Set RELEASE_TYPE # - Add custom packages to be installed # - Handle keys # - Prepare the environment @@ -272,6 +273,11 @@ for codename in ${devices//,/ }; do DEBUG_LOG="$LOGS_DIR/$logsubdir/lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.log" + # Set RELEASE_TYPE + echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type" + sed -i "/\$(filter .*\$(${vendor^^}_BUILDTYPE)/,/endif/d" "$makefile_containing_version" + + # Add custom packages to be installed if [ -n "$CUSTOM_PACKAGES" ]; then echo ">> [$(date)] Adding custom packages ($CUSTOM_PACKAGES)"