TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / scripts / clean-build.sh
1 #!/bin/sh
2
3 set -ex
4
5 cleanup() {
6   # In cases where anbox comes directly from a checked out Android
7   # build environment we miss some symlinks which are present on
8   # the host and don't have a valid git repository in that case.
9   if [ -d .git ] ; then
10     git clean -fdx .
11     git reset --hard
12   fi
13 }
14
15 cleanup
16
17 mkdir build || rm -rf build/*
18 cd build
19 cmake ..
20 VERBOSE=1 make -j10
21 VERBOSE=1 make test
22 cd ..