Commit ff4a7edf authored by Nicolas Geoffray's avatar Nicolas Geoffray
Browse files

Fix dalvik script file to be able to run without defining environment variables.

Change-Id: I344437997de020225225b1e884fb2b79b525f98b
parent 0f45d4c6
......@@ -14,6 +14,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
function follow_links() {
file="$1"
while [ -h "$file" ]; do
# On Mac OS, readlink -f doesn't work.
file="$(readlink "$file")"
done
echo "$file"
}
PROG_NAME="$(follow_links "$BASH_SOURCE")"
PROG_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
ANDROID_BUILD_TOP="$(cd "${PROG_DIR}/../../../../" ; pwd -P)/"
mkdir -p /tmp/android-data/dalvik-cache
ANDROID_PRINTF_LOG=tag \
ANDROID_LOG_TAGS="" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment