pixel: Update for LineageOS vars usage
Change-Id: I684387c3f4d6ad776d41c1e91e17ce8dae25a70a
This commit is contained in:
@@ -21,7 +21,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"
|
||||
readonly top="${script_path}/../../.."
|
||||
|
||||
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
||||
|
||||
@@ -22,8 +22,8 @@ trap 'error_m interrupted!' SIGINT
|
||||
|
||||
### CONSTANTS ###
|
||||
readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
||||
readonly vars_path="${script_path}/../vars/"
|
||||
readonly top="${script_path}/../../../"
|
||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||
readonly top="${script_path}/../../.."
|
||||
|
||||
readonly tmp_dir="${TMPDIR:-/tmp}/pixel"
|
||||
|
||||
@@ -61,7 +61,7 @@ main() {
|
||||
(
|
||||
local dv="${vars_path}/${d}"
|
||||
source "${dv}"
|
||||
local mk="$(ls ${top}/device/google/*/calyx_${d}.mk)"
|
||||
local mk="$(ls ${top}/device/google/*/lineage_${d}.mk)"
|
||||
sed -i "s/${prev_build_id}/${build_id}/g" "${mk}"
|
||||
sed -i "s/${prev_build_number}/${build_number}/g" "${mk}"
|
||||
)
|
||||
|
||||
@@ -21,7 +21,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"
|
||||
readonly top="${script_path}/../../.."
|
||||
|
||||
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
||||
|
||||
@@ -22,7 +22,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"
|
||||
|
||||
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
||||
|
||||
|
||||
@@ -22,7 +22,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"
|
||||
|
||||
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
||||
|
||||
|
||||
@@ -22,7 +22,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"
|
||||
readonly top="${script_path}/../../.."
|
||||
|
||||
readonly extract_ota_py="${top}/tools/extract-utils/extract_ota.py"
|
||||
|
||||
@@ -22,7 +22,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"
|
||||
|
||||
readonly tmp_dir="${TMPDIR:-/tmp}/pixel"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user