aosp-merger: Adapt for LineageOS vars usage
Change-Id: Id63a7377ed68ee7d7743af31747eade2d785369e
This commit is contained in:
committed by
Chirayu Desai
parent
adcf6fca04
commit
b92af37df1
@@ -28,14 +28,14 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
readonly hook="${script_path}/prepare-commit-msg"
|
||||
|
||||
TOP="${script_path}/../../.."
|
||||
BRANCH="${calyxos_branch}"
|
||||
BRANCH="${lineageos_branch}"
|
||||
|
||||
cd "${TOP}/${PROJECTPATH}"
|
||||
repo start "${STAGINGBRANCH}" .
|
||||
|
||||
@@ -26,7 +26,7 @@ trap 'error_m interrupted!' SIGINT
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
@@ -47,7 +47,7 @@ merge_aosp() {
|
||||
}
|
||||
|
||||
merge_aosp_forks() {
|
||||
export STAGINGBRANCH="staging/${calyxos_branch}_merge-${common_aosp_tag}"
|
||||
export STAGINGBRANCH="staging/${lineageos_branch}_merge-${common_aosp_tag}"
|
||||
"${script_path}"/merge-aosp-forks.sh merge "${prev_common_aosp_tag}" "${common_aosp_tag}"
|
||||
}
|
||||
|
||||
|
||||
@@ -27,13 +27,13 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
TOP="${script_path}/../../.."
|
||||
MANIFEST="${TOP}/.repo/manifests/default.xml"
|
||||
BRANCH="${calyxos_branch}"
|
||||
BRANCH="${lineageos_branch}"
|
||||
|
||||
# Source build environment (needed for aospremote)
|
||||
source "${TOP}/build/envsetup.sh"
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
|
||||
@@ -27,15 +27,15 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
TOP="${script_path}/../../.."
|
||||
BRANCH="${calyxos_branch}"
|
||||
BRANCH="${lineageos_branch}"
|
||||
STAGINGBRANCH="staging/${BRANCH}_${OPERATION}-${NEWTAG}"
|
||||
|
||||
# Source build environment (needed for calyxremote)
|
||||
# Source build environment (needed for lineageremote)
|
||||
source "${TOP}/build/envsetup.sh"
|
||||
|
||||
# List of merged repos
|
||||
@@ -62,6 +62,6 @@ for PROJECTPATH in ${PROJECTPATHS}; do
|
||||
cd "${TOP}/${PROJECTPATH}"
|
||||
echo "#### Submitting ${PROJECTPATH} merge ####"
|
||||
git checkout "${STAGINGBRANCH}"
|
||||
calyxremote | grep -v "Remote 'calyx' created"
|
||||
git push calyx HEAD:refs/heads/"${BRANCH}"
|
||||
lineageremote | grep -v "Remote 'lineage' created"
|
||||
git push lineage HEAD:refs/heads/"${BRANCH}"
|
||||
done
|
||||
|
||||
@@ -27,12 +27,12 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
TOP="${script_path}/../../.."
|
||||
BRANCH="${calyxos_branch}"
|
||||
BRANCH="${lineageos_branch}"
|
||||
STAGINGBRANCH="staging/${BRANCH}_${OPERATION}-${NEWTAG}"
|
||||
SQUASHBRANCH="squash/${BRANCH}_${OPERATION}-${NEWTAG}"
|
||||
|
||||
|
||||
@@ -27,12 +27,12 @@ fi
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
|
||||
source "${vars_path}/common"
|
||||
|
||||
TOP="${script_path}/../../.."
|
||||
BRANCH="${calyxos_branch}"
|
||||
BRANCH="${lineageos_branch}"
|
||||
SQUASHBRANCH="squash/${BRANCH}_${OPERATION}-${NEWTAG}"
|
||||
|
||||
# List of merged repos
|
||||
@@ -41,7 +41,7 @@ PROJECTPATHS=$(cat ${MERGEDREPOS} | grep -w merge | awk '{printf "%s\n", $2}')
|
||||
echo "#### Branch = ${BRANCH} Squash branch = ${SQUASHBRANCH} ####"
|
||||
|
||||
# Make sure manifest and forked repos are in a consistent state
|
||||
echo "#### Verifying there are no uncommitted changes on CalyxOS forked AOSP projects ####"
|
||||
echo "#### Verifying there are no uncommitted changes on LineageOS forked AOSP projects ####"
|
||||
for PROJECTPATH in ${PROJECTPATHS} .repo/manifests; do
|
||||
cd "${TOP}/${PROJECTPATH}"
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user