diff options
Diffstat (limited to '')
-rw-r--r-- | extract-files.sh | 8 | ||||
-rwxr-xr-x | setup-makefiles.sh | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/extract-files.sh b/extract-files.sh index 44caf78..c5e540e 100644 --- a/extract-files.sh +++ b/extract-files.sh @@ -28,9 +28,9 @@ export DEVICE_BRINGUP_YEAR=2016 MY_DIR="${BASH_SOURCE%/*}" if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi -CM_ROOT="$MY_DIR"/../../.. +LINEAGE_ROOT="$MY_DIR"/../../.. -HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh +HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh if [ ! -f "$HELPER" ]; then echo "Unable to find helper script at $HELPER" exit 1 @@ -60,13 +60,13 @@ if [ -z "$SRC" ]; then fi # Initialize the helper for common device -setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" true "$CLEAN_VENDOR" +setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then # Reinitialize the helper for device - setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false "$CLEAN_VENDOR" + setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR" extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION" fi diff --git a/setup-makefiles.sh b/setup-makefiles.sh index af91e75..7e65196 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -30,9 +30,9 @@ INITIAL_COPYRIGHT_YEAR=2017 MY_DIR="${BASH_SOURCE%/*}" if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi -CM_ROOT="$MY_DIR"/../../.. +LINEAGE_ROOT="$MY_DIR"/../../.. -HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh +HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh if [ ! -f "$HELPER" ]; then echo "Unable to find helper script at $HELPER" exit 1 @@ -40,7 +40,7 @@ fi . "$HELPER" # Initialize the helper for common -setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" true +setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true # Copyright headers and guards write_headers "z2_plus" @@ -54,7 +54,7 @@ write_footers if [ -s "$MY_DIR"/../"$DEVICE"/proprietary-files.txt ]; then # Reinitialize the helper for device INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR" - setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false + setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false # Copyright headers and guards write_headers |