1*f0df9794SNeil Fuller# Copyright 2021 The Android Open Source Project 2*f0df9794SNeil Fuller# 3*f0df9794SNeil Fuller# Licensed under the Apache License, Version 2.0 (the "License"); 4*f0df9794SNeil Fuller# you may not use this file except in compliance with the License. 5*f0df9794SNeil Fuller# You may obtain a copy of the License at 6*f0df9794SNeil Fuller# 7*f0df9794SNeil Fuller# http://www.apache.org/licenses/LICENSE-2.0 8*f0df9794SNeil Fuller# 9*f0df9794SNeil Fuller# Unless required by applicable law or agreed to in writing, software 10*f0df9794SNeil Fuller# distributed under the License is distributed on an "AS IS" BASIS, 11*f0df9794SNeil Fuller# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*f0df9794SNeil Fuller# See the License for the specific language governing permissions and 13*f0df9794SNeil Fuller# limitations under the License. 14*f0df9794SNeil Fuller 15*f0df9794SNeil Fullerif [[ -z "${HOST_TOOLS_DIR}" ]]; then 16*f0df9794SNeil Fuller echo HOST_TOOLS_DIR not set 17*f0df9794SNeil Fuller exit 1 18*f0df9794SNeil Fullerfi 19*f0df9794SNeil Fuller 20*f0df9794SNeil Fuller# The android_ prefix is to get around the upstream project's .gitignore rules 21*f0df9794SNeil Fuller# for dist / downloads. Android will want to commit them to version control to 22*f0df9794SNeil Fuller# improve change tracking / repeatability and avoid unnecessary load on OSM 23*f0df9794SNeil Fuller# servers. 24*f0df9794SNeil FullerINPUTS_DIR=android_inputs 25*f0df9794SNeil FullerDOWNLOADS_DIR=android_downloads 26*f0df9794SNeil FullerDIST_DIR=android_dist 27*f0df9794SNeil Fuller 28*f0df9794SNeil FullerCONTAINER_ANDROID_DIR=./android 29*f0df9794SNeil FullerCONTAINER_DOWNLOADS_DIR=${CONTAINER_ANDROID_DIR}/${DOWNLOADS_DIR} 30*f0df9794SNeil FullerCONTAINER_DIST_DIR=${CONTAINER_ANDROID_DIR}/${DIST_DIR} 31*f0df9794SNeil Fuller 32*f0df9794SNeil FullerHOST_ANDROID_DIR=${HOST_TOOLS_DIR}/../.. 33*f0df9794SNeil FullerHOST_ANDROID_DIR=$(realpath ${HOST_ANDROID_DIR}) 34*f0df9794SNeil FullerHOST_INPUTS_DIR=${HOST_ANDROID_DIR}/${INPUTS_DIR} 35*f0df9794SNeil FullerHOST_DOWNLOADS_DIR=${HOST_ANDROID_DIR}/${DOWNLOADS_DIR} 36*f0df9794SNeil FullerHOST_DIST_DIR=${HOST_ANDROID_DIR}/${DIST_DIR} 37*f0df9794SNeil Fuller 38