Christopher R. Palmer | 070fcfc | 2017-03-03 09:27:58 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (C) 2016 The CyanogenMod Project |
| 4 | # Copyright (C) 2017 The LineageOS Project |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | |
| 19 | set -e |
| 20 | |
| 21 | DEVICE=*** FILL IN DEVICE **** |
| 22 | VENDOR=*** FILL IN VENDOR **** |
| 23 | |
| 24 | INITIAL_COPYRIGHT_YEAR=**** FILL IN COPYRIGHT YEAR **** |
| 25 | |
| 26 | # Load extract_utils and do some sanity checks |
| 27 | MY_DIR="${BASH_SOURCE%/*}" |
| 28 | if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi |
| 29 | |
| 30 | CM_ROOT="$MY_DIR"/../../.. |
| 31 | |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame^] | 32 | HELPER="$CM_ROOT"/vendor/lineage/build/tools/extract_utils.sh |
Christopher R. Palmer | 070fcfc | 2017-03-03 09:27:58 -0500 | [diff] [blame] | 33 | if [ ! -f "$HELPER" ]; then |
| 34 | echo "Unable to find helper script at $HELPER" |
| 35 | exit 1 |
| 36 | fi |
| 37 | . "$HELPER" |
| 38 | |
| 39 | # Initialize the helper |
| 40 | setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" |
| 41 | |
| 42 | # Copyright headers and guards |
| 43 | write_headers |
| 44 | |
| 45 | write_makefiles "$MY_DIR"/proprietary-files.txt |
| 46 | |
Christopher R. Palmer | 070fcfc | 2017-03-03 09:27:58 -0500 | [diff] [blame] | 47 | # Finish |
| 48 | write_footers |