blob: a17be348ceadbf8a917c3d910f132123a5ff5abb [file] [log] [blame]
#!/bin/bash -e
if [[ -z "${1}" || -z "${2}" ]]; then
echo "usage: oauth.sh commitId <persistenceDir> <client_secret.json>" >&2
exit 1
fi
echo "Starting build"
mvn -q install > /dev/null
pushd cli
trap '{ echo "Hey, you pressed Ctrl-C. Time to quit." ; popd; exit 0; }' INT
echo "Starting oauth tool"
mvn exec:java -Dexec.mainClass=com.google.j2cl.benchmark.cli.OAuthWriter -Dexec.args="${1} ${2}"