pixel: Update for LineageOS vars usage

Change-Id: I684387c3f4d6ad776d41c1e91e17ce8dae25a70a
This commit is contained in:
Michael Bestas
2022-01-13 18:30:44 +02:00
parent af8c4e06d3
commit 6688187cd0
7 changed files with 9 additions and 9 deletions

View File

@@ -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}"

View File

@@ -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}"
)

View File

@@ -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}"

View File

@@ -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}"

View File

@@ -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}"

View File

@@ -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"

View File

@@ -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"