diff options
author | dakkar <dakkar@thenautilus.net> | 2018-07-13 11:29:58 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-07-13 11:29:58 +0100 |
commit | 87bfe65d8cfd3be89e149eaba6d99b8bc8c92a37 (patch) | |
tree | 157bc6ed5f02d5a24e02bf0c2740c7a786fd9a07 /build.sh | |
parent | make me the buildbot (diff) | |
download | dakkar-android-huawei-m5-87bfe65d8cfd3be89e149eaba6d99b8bc8c92a37.tar.gz dakkar-android-huawei-m5-87bfe65d8cfd3be89e149eaba6d99b8bc8c92a37.tar.bz2 dakkar-android-huawei-m5-87bfe65d8cfd3be89e149eaba6d99b8bc8c92a37.zip |
split init/setup
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -4,7 +4,7 @@ set -e thisdir="$(readlink -f "$(dirname "$0")")" - +echo "thisdir=$thisdir" release_name="$(date +%y%m%d)" mkdir -p release/"$release_name" @@ -27,9 +27,11 @@ function clone_or_checkout() { fi } -function setup_code() { +function init_repo() { repo init -u https://github.com/LineageOS/android.git -b lineage-15.1 +} +function setup_code() { clone_or_checkout .repo/local_manifests "$thisdir" master clone_or_checkout dakkar-patches "$thisdir" master clone_or_checkout patches https://github.com/phhusson/treble_patches android-8.1 @@ -42,7 +44,10 @@ function setup_code() { bash "$thisdir/apply-patches.sh" dakkar-patches } -if [[ "$1" == "setup" ]]; then +if [[ "$1" == "init" ]]; then + init_repo + setup_code +elif [[ "$1" == "setup" ]]; then setup_code fi |