Loading build-community.sh +15 −19 Original line number Original line Diff line number Diff line Loading @@ -83,41 +83,37 @@ for branch in ${BRANCH_NAME//,/ }; do if [ -n "$branch" ] && [ -n "$devices" ]; then if [ -n "$branch" ] && [ -n "$devices" ]; then vendor=lineage vendor=lineage case "$branch" in regex_part1="^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(" v*-nougat*) regex_part2=")(-[a-zA-Z0-9_]*)*$" if [[ "${BRANCH_NAME}" =~ $regex_part1"nougat"$regex_part2 ]]; then vendor="cm" vendor="cm" themuppets_branch="cm-14.1" themuppets_branch="cm-14.1" android_version="7.1.2" android_version="7.1.2" ;; use_openjdk_from_ubuntu=true v*-oreo*) elif [[ "${BRANCH_NAME}" =~ $regex_part1"oreo"$regex_part2 ]]; then themuppets_branch="lineage-15.1" themuppets_branch="lineage-15.1" android_version="8.1" android_version="8.1" ;; use_openjdk_from_ubuntu=true v*-pie*) elif [[ "${BRANCH_NAME}" =~ $regex_part1"pie"$regex_part2 ]]; then themuppets_branch="lineage-16.0" themuppets_branch="lineage-16.0" android_version="9" android_version="9" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"q"$regex_part2 ]]; then v*-q*) themuppets_branch="lineage-17.1" themuppets_branch="lineage-17.1" android_version="10" android_version="10" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"r"$regex_part2 ]]; then v*-r*) themuppets_branch="lineage-18.1" themuppets_branch="lineage-18.1" android_version="11" android_version="11" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"s"$regex_part2 ]]; then v*-s*) themuppets_branch="lineage-19.1" themuppets_branch="lineage-19.1" android_version="12" android_version="12" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"t"$regex_part2 ]]; then v*-t*) themuppets_branch="lineage-20.0" themuppets_branch="lineage-20.0" android_version="13" android_version="13" ;; else *) echo ">> [$(date)] Building branch $branch is not (yet) suppported" echo ">> [$(date)] Building branch $branch is not (yet) suppported" exit 1 exit 1 ;; fi esac android_version_major=$(cut -d '.' -f 1 <<< $android_version) android_version_major=$(cut -d '.' -f 1 <<< $android_version) Loading src/build.sh +31 −37 Original line number Original line Diff line number Diff line Loading @@ -39,43 +39,37 @@ branch_dir=${branch_dir^^} if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then vendor=lineage vendor=lineage case "$BRANCH_NAME" in regex_part1="^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(" v*-nougat*) regex_part2=")(-[a-zA-Z0-9_]*)*$" if [[ "${BRANCH_NAME}" =~ $regex_part1"nougat"$regex_part2 ]]; then vendor="cm" vendor="cm" themuppets_branch="cm-14.1" themuppets_branch="cm-14.1" android_version="7.1.2" android_version="7.1.2" use_openjdk_from_ubuntu=true use_openjdk_from_ubuntu=true ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"oreo"$regex_part2 ]]; then v*-oreo*) themuppets_branch="lineage-15.1" themuppets_branch="lineage-15.1" android_version="8.1" android_version="8.1" use_openjdk_from_ubuntu=true use_openjdk_from_ubuntu=true ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"pie"$regex_part2 ]]; then v*-pie*) themuppets_branch="lineage-16.0" themuppets_branch="lineage-16.0" android_version="9" android_version="9" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"q"$regex_part2 ]]; then v*-q*) themuppets_branch="lineage-17.1" themuppets_branch="lineage-17.1" android_version="10" android_version="10" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"r"$regex_part2 ]]; then v*-r*) themuppets_branch="lineage-18.1" themuppets_branch="lineage-18.1" android_version="11" android_version="11" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"s"$regex_part2 ]]; then v*-s*) themuppets_branch="lineage-19.1" themuppets_branch="lineage-19.1" android_version="12" android_version="12" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"t"$regex_part2 ]]; then v*-t*) themuppets_branch="lineage-20.0" themuppets_branch="lineage-20.0" android_version="13" android_version="13" ;; else *) echo ">> [$(date)] Building branch $branch is not (yet) suppported" echo ">> [$(date)] Building branch $branch is not (yet) suppported" exit 1 exit 1 ;; fi esac android_version_major=$(cut -d '.' -f 1 <<< $android_version) android_version_major=$(cut -d '.' -f 1 <<< $android_version) Loading Loading
build-community.sh +15 −19 Original line number Original line Diff line number Diff line Loading @@ -83,41 +83,37 @@ for branch in ${BRANCH_NAME//,/ }; do if [ -n "$branch" ] && [ -n "$devices" ]; then if [ -n "$branch" ] && [ -n "$devices" ]; then vendor=lineage vendor=lineage case "$branch" in regex_part1="^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(" v*-nougat*) regex_part2=")(-[a-zA-Z0-9_]*)*$" if [[ "${BRANCH_NAME}" =~ $regex_part1"nougat"$regex_part2 ]]; then vendor="cm" vendor="cm" themuppets_branch="cm-14.1" themuppets_branch="cm-14.1" android_version="7.1.2" android_version="7.1.2" ;; use_openjdk_from_ubuntu=true v*-oreo*) elif [[ "${BRANCH_NAME}" =~ $regex_part1"oreo"$regex_part2 ]]; then themuppets_branch="lineage-15.1" themuppets_branch="lineage-15.1" android_version="8.1" android_version="8.1" ;; use_openjdk_from_ubuntu=true v*-pie*) elif [[ "${BRANCH_NAME}" =~ $regex_part1"pie"$regex_part2 ]]; then themuppets_branch="lineage-16.0" themuppets_branch="lineage-16.0" android_version="9" android_version="9" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"q"$regex_part2 ]]; then v*-q*) themuppets_branch="lineage-17.1" themuppets_branch="lineage-17.1" android_version="10" android_version="10" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"r"$regex_part2 ]]; then v*-r*) themuppets_branch="lineage-18.1" themuppets_branch="lineage-18.1" android_version="11" android_version="11" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"s"$regex_part2 ]]; then v*-s*) themuppets_branch="lineage-19.1" themuppets_branch="lineage-19.1" android_version="12" android_version="12" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"t"$regex_part2 ]]; then v*-t*) themuppets_branch="lineage-20.0" themuppets_branch="lineage-20.0" android_version="13" android_version="13" ;; else *) echo ">> [$(date)] Building branch $branch is not (yet) suppported" echo ">> [$(date)] Building branch $branch is not (yet) suppported" exit 1 exit 1 ;; fi esac android_version_major=$(cut -d '.' -f 1 <<< $android_version) android_version_major=$(cut -d '.' -f 1 <<< $android_version) Loading
src/build.sh +31 −37 Original line number Original line Diff line number Diff line Loading @@ -39,43 +39,37 @@ branch_dir=${branch_dir^^} if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then vendor=lineage vendor=lineage case "$BRANCH_NAME" in regex_part1="^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(" v*-nougat*) regex_part2=")(-[a-zA-Z0-9_]*)*$" if [[ "${BRANCH_NAME}" =~ $regex_part1"nougat"$regex_part2 ]]; then vendor="cm" vendor="cm" themuppets_branch="cm-14.1" themuppets_branch="cm-14.1" android_version="7.1.2" android_version="7.1.2" use_openjdk_from_ubuntu=true use_openjdk_from_ubuntu=true ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"oreo"$regex_part2 ]]; then v*-oreo*) themuppets_branch="lineage-15.1" themuppets_branch="lineage-15.1" android_version="8.1" android_version="8.1" use_openjdk_from_ubuntu=true use_openjdk_from_ubuntu=true ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"pie"$regex_part2 ]]; then v*-pie*) themuppets_branch="lineage-16.0" themuppets_branch="lineage-16.0" android_version="9" android_version="9" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"q"$regex_part2 ]]; then v*-q*) themuppets_branch="lineage-17.1" themuppets_branch="lineage-17.1" android_version="10" android_version="10" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"r"$regex_part2 ]]; then v*-r*) themuppets_branch="lineage-18.1" themuppets_branch="lineage-18.1" android_version="11" android_version="11" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"s"$regex_part2 ]]; then v*-s*) themuppets_branch="lineage-19.1" themuppets_branch="lineage-19.1" android_version="12" android_version="12" ;; elif [[ "${BRANCH_NAME}" =~ $regex_part1"t"$regex_part2 ]]; then v*-t*) themuppets_branch="lineage-20.0" themuppets_branch="lineage-20.0" android_version="13" android_version="13" ;; else *) echo ">> [$(date)] Building branch $branch is not (yet) suppported" echo ">> [$(date)] Building branch $branch is not (yet) suppported" exit 1 exit 1 ;; fi esac android_version_major=$(cut -d '.' -f 1 <<< $android_version) android_version_major=$(cut -d '.' -f 1 <<< $android_version) Loading