From 272215db61b0715ecfb78e4f0e1f1525695db383 Mon Sep 17 00:00:00 2001 From: Emil Kosz Date: Sun, 13 Sep 2026 23:00:48 +0200 Subject: [PATCH] build: add BUILD variable --- build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 9b05d41..5819462 100755 --- a/build.sh +++ b/build.sh @@ -3,6 +3,7 @@ set -euo pipefail readonly ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$ROOT" +readonly BUILD="$ROOT/build-los" readonly MANIFEST_URL="https://github.com/LineageOS/android.git" readonly MANIFEST_BRANCH="cm-14.1" @@ -23,7 +24,7 @@ commands: bootimage build boot.img (kernel + dt.img + ramdisk, fast gate) bacon full build -> lineage_rubenslte-*.zip clean mka clean - prune remove all of los-build + prune remove all of "$BUILD" EOF } @@ -36,8 +37,8 @@ append_seandroidenforce() { } do_build() { - mkdir -p los-build - cd los-build + mkdir -p "$BUILD" + cd "$BUILD" if [ ! -d .repo ]; then rlte_print "Setting up repo" @@ -83,7 +84,7 @@ do_build() { if [ "$CMD" != "clean" ]; then rlte_print "Appending SEANDROIDENFORCE" - append_seandroidenforce "$ROOT/los-build/out/target/product/rubenslte/boot.img" + append_seandroidenforce "$BUILD/out/target/product/rubenslte/boot.img" fi rlte_ok "Done." @@ -101,6 +102,6 @@ shift $((OPTIND - 1)) case "${1:-}" in bootimage|bacon|clean) CMD="${1:-}"; do_build ;; - prune) rm -rf los-build ;; + prune) rm -rf "$BUILD" ;; *) usage; exit 1 ;; esac