blob: 6a982c6b14980793318e7b37da83b933e85e7a38 [file] [log] [blame]
Aurimas Liutikas222577c2020-05-01 17:21:57 -07001#!/bin/bash
2set -e
3
4cd "$(dirname $0)/../../"
5SCRIPT_DIR="$(pwd)"
6echo "Script running from $(pwd)"
7
8# resolve DIST_DIR
9if [ -z "$DIST_DIR" ]; then
10 DIST_DIR="$SCRIPT_DIR/out/dist"
11fi
12mkdir -p "$DIST_DIR"
13
14export OUT_DIR=out
15export DIST_DIR="$DIST_DIR"
16
Aurimas Liutikasc1f1d872020-11-16 21:54:51 +000017JAVA_HOME="$(pwd)/prebuilts/studio/jdk/jdk11/linux" tools/gradlew -p tools/ publishLocal --stacktrace
Aurimas Liutikas222577c2020-05-01 17:21:57 -070018
19export LINT_VERSION=`grep -oP "(?<=baseVersion = ).*" tools/buildSrc/base/version.properties`
20export LINT_REPO="$(pwd)/out/repo"
21
Aurimas Liutikas17ca8792020-08-27 21:01:28 +000022tools/gradlew -p tools/metalava --no-daemon --stacktrace -PlintRepo=$LINT_REPO -PlintVersion=$LINT_VERSION