Code Review
/
iec.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d31589b9a00f5a219f8cc959f6b2707d17b93627
[iec.git]
/
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 ..