X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fscripts%2Fclean-build.sh;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fscripts%2Fclean-build.sh;h=d31589b9a00f5a219f8cc959f6b2707d17b93627;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/scripts/clean-build.sh b/src/type3_AndroidCloud/anbox-master/scripts/clean-build.sh new file mode 100644 index 0000000..d31589b --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/scripts/clean-build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +set -ex + +cleanup() { + # In cases where anbox comes directly from a checked out Android + # build environment we miss some symlinks which are present on + # the host and don't have a valid git repository in that case. + if [ -d .git ] ; then + git clean -fdx . + git reset --hard + fi +} + +cleanup + +mkdir build || rm -rf build/* +cd build +cmake .. +VERBOSE=1 make -j10 +VERBOSE=1 make test +cd ..