sanders: Fix script path in these files
Signed-off-by: Jorge Lucas <jorgelucas.sd@gmail.com>
This commit is contained in:
@@ -24,9 +24,9 @@ VENDOR=motorola
|
|||||||
MY_DIR="${BASH_SOURCE%/*}"
|
MY_DIR="${BASH_SOURCE%/*}"
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||||
|
|
||||||
CM_ROOT="$MY_DIR"/../../..
|
AOSP_ROOT="$MY_DIR"/../../..
|
||||||
|
|
||||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
HELPER="$AOSP_ROOT"/vendor/aosp/build/tools/extract_utils.sh
|
||||||
if [ ! -f "$HELPER" ]; then
|
if [ ! -f "$HELPER" ]; then
|
||||||
echo "Unable to find helper script at $HELPER"
|
echo "Unable to find helper script at $HELPER"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -50,7 +50,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize the helper
|
# Initialize the helper
|
||||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
setup_vendor "$DEVICE" "$VENDOR" "$AOSP_ROOT"
|
||||||
|
|
||||||
extract "$MY_DIR"/proprietary-files.txt "$SRC"
|
extract "$MY_DIR"/proprietary-files.txt "$SRC"
|
||||||
|
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ VENDOR=motorola
|
|||||||
MY_DIR="${BASH_SOURCE%/*}"
|
MY_DIR="${BASH_SOURCE%/*}"
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||||
|
|
||||||
CM_ROOT="$MY_DIR"/../../..
|
AOSP_ROOT="$MY_DIR"/../../..
|
||||||
|
|
||||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
HELPER="$AOSP_ROOT"/vendor/aosp/build/tools/extract_utils.sh
|
||||||
if [ ! -f "$HELPER" ]; then
|
if [ ! -f "$HELPER" ]; then
|
||||||
echo "Unable to find helper script at $HELPER"
|
echo "Unable to find helper script at $HELPER"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -35,7 +35,7 @@ fi
|
|||||||
. "$HELPER"
|
. "$HELPER"
|
||||||
|
|
||||||
# Initialize the helper
|
# Initialize the helper
|
||||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
setup_vendor "$DEVICE" "$VENDOR" "$AOSP_ROOT"
|
||||||
|
|
||||||
# Copyright headers and guards
|
# Copyright headers and guards
|
||||||
write_headers
|
write_headers
|
||||||
|
|||||||
Reference in New Issue
Block a user