Add versioner to preupload hook.

Bug: http://b/31676510
Change-Id: Ic7cfad1cb214c9f711a985bace484a20db1a89b6
Test: submitted this patch, and it failed
This commit is contained in:
Josh Gao 2016-09-22 17:28:12 -07:00
parent 0855431067
commit 0173379610
2 changed files with 11 additions and 0 deletions

2
PREUPLOAD.cfg Normal file
View file

@ -0,0 +1,2 @@
[Hook Scripts]
versioner = tools/versioner/preupload.sh

9
tools/versioner/preupload.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if ! which versioner > /dev/null; then
echo "versioner not found (lunch and mma in bionic)"
exit 1
fi
versioner -r arm -r arm64
exit $?