Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10bbe574 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

introducing KEEP_LOCAL_MANIFEST_BRANCH

parent 63868e23
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ ENV CCACHE_EXEC /usr/bin/ccache
# See https://github.com/LineageOS/android_vendor_cm/branches for possible options
ENV BRANCH_NAME 'v1-q'

# When true, muppets manifests will keep BRANCH_NAME as branch instead of getting its lineage equivalent
ENV KEEP_LOCAL_MANIFEST_BRANCH 'false'

# Environment for the device
# eg. DEVICE=hammerhead
ENV DEVICE ''
+4 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
    vendor=lineage
    regex_part1="^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-("
    regex_part2=")(-[a-zA-Z0-9_]*)*$"
    
    if [[ "${BRANCH_NAME}" =~ $regex_part1"nougat"$regex_part2 ]]; then
      vendor="cm"
        themuppets_branch="cm-14.1"
@@ -71,6 +70,10 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
        exit 1
    fi

    if [[ "${KEEP_LOCAL_MANIFEST_BRANCH}" = true ]]; then
      themuppets_branch=$BRANCH_NAME
    fi

  android_version_major=$(cut -d '.' -f 1 <<< $android_version)

  mkdir -p "$SRC_DIR/$branch_dir"