Commit | Line | Data |
---|---|---|
ea2230e2 JA |
1 | #!/bin/bash |
2 | # | |
994d255f | 3 | # Copyright (C) 2016 The CyanogenMod Project |
ea2230e2 JA |
4 | # Copyright (C) 2017-2020 The LineageOS Project |
5 | # | |
994d255f | 6 | # SPDX-License-Identifier: Apache-2.0 |
ea2230e2 JA |
7 | # |
8 | ||
9 | set -e | |
10 | ||
ea2230e2 | 11 | DEVICE=kane |
994d255f | 12 | VENDOR=motorola |
ea2230e2 JA |
13 | |
14 | # Load extract_utils and do some sanity checks | |
15 | MY_DIR="${BASH_SOURCE%/*}" | |
16 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi | |
17 | ||
994d255f | 18 | ANDROID_ROOT="${MY_DIR}/../../.." |
ea2230e2 | 19 | |
994d255f | 20 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" |
ea2230e2 JA |
21 | if [ ! -f "${HELPER}" ]; then |
22 | echo "Unable to find helper script at ${HELPER}" | |
23 | exit 1 | |
24 | fi | |
25 | source "${HELPER}" | |
26 | ||
27 | # Initialize the helper | |
994d255f | 28 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" |
ea2230e2 | 29 | |
994d255f MB |
30 | # Warning headers and guards |
31 | write_headers | |
ea2230e2 | 32 | |
ea2230e2 JA |
33 | write_makefiles "${MY_DIR}/proprietary-files.txt" true |
34 | ||
35 | # Finish | |
36 | write_footers |