summaryrefslogtreecommitdiff
path: root/test/poi-service/clone_and_build.sh
blob: e864f69df2b6bee2e8e748155e4cdf80a3a8ad65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

positioning_version='9e65831eed02cc8a1b2e2e73787d6007b54214b4'

echo "version of positioning is: $positioning_version"

echo -n "This script deletes, reloads and builds everything, are you sure ? (y or n) "
read input

if [ ! "$input" = 'y' ]
then
	exit 1
fi

if [ -d "./build" ]
then
	find ./build ! -name '*.cbp' -type f -exec rm -f {} +
fi
rm -rf positioning

git clone https://github.com/GENIVI/positioning.git ./positioning
cd positioning
git checkout $positioning_version
cd ..

./build.sh -c