1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/bash
- set -e
- export GAPPS_COMMON=common
- export VENDOR=gapps
- MY_DIR="${BASH_SOURCE%/*}"
- if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
- LINEAGE_ROOT="$MY_DIR"/../..
- HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
- if [ ! -f "$HELPER" ]; then
- echo "Unable to find helper script at $HELPER"
- exit 1
- fi
- . "$HELPER"
- SRC=$1
- if [ -z "$SRC" ]; then
- echo "Path to system dump not specified! Specify one with --path"
- exit 1
- fi
- setup_vendor "$GAPPS_COMMON" "$VENDOR" "$LINEAGE_ROOT"
- extract "$MY_DIR"/proprietary-files-common.txt "$SRC"
- extract "$MY_DIR"/proprietary-files-common-nongrouper.txt "$SRC"
- "$MY_DIR"/setup-makefiles.sh
|