|
@@ -1,7 +1,7 @@
|
|
|
#!/bin/bash
|
|
|
#
|
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
|
|
-# Copyright (C) 2017-2018 The LineageOS Project
|
|
|
+# Copyright (C) 2017-2021 The LineageOS Project
|
|
|
#
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,8 +18,6 @@
|
|
|
|
|
|
set -e
|
|
|
|
|
|
-export INITIAL_COPYRIGHT_YEAR=2017
|
|
|
-
|
|
|
export DEVICE_COMMON=common
|
|
|
export VENDOR=gapps
|
|
|
|
|
@@ -27,9 +25,9 @@ export VENDOR=gapps
|
|
|
MY_DIR="${BASH_SOURCE%/*}"
|
|
|
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
|
|
|
|
|
-LINEAGE_ROOT="$MY_DIR"/../..
|
|
|
+ANDROID_ROOT="$MY_DIR/../.."
|
|
|
|
|
|
-HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
|
|
|
+HELPER="$ANDROID_ROOT/tools/extract-utils/extract_utils.sh"
|
|
|
if [ ! -f "$HELPER" ]; then
|
|
|
echo "Unable to find helper script at $HELPER"
|
|
|
exit 1
|
|
@@ -37,7 +35,7 @@ fi
|
|
|
. "$HELPER"
|
|
|
|
|
|
# Initialize the helper for common gapps
|
|
|
-setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
|
|
|
+setup_vendor "$DEVICE_COMMON" "$VENDOR" "$ANDROID_ROOT" true
|
|
|
|
|
|
# Copyright headers
|
|
|
write_headers "arm arm64 x86"
|
|
@@ -59,7 +57,7 @@ write_footers
|
|
|
for DEVICE in arm arm64 x86; do
|
|
|
|
|
|
# Reinitialize the helper for target gapps
|
|
|
-setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT"
|
|
|
+setup_vendor "$DEVICE" "$VENDOR" "$ANDROID_ROOT"
|
|
|
|
|
|
# Copyright headers and guards
|
|
|
write_headers "$DEVICE"
|