summaryrefslogtreecommitdiff
path: root/src/navigation/update_positioning.sh
blob: 9fab24b8d20c5b095a48678c6e1ded89d32c4698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

if [ $# -eq 0 ]
 then
  echo "Need positioning commit version"
  exit
fi

positioning_version=$1

if [ -d "./build" ]
then
	find ./build/positioning ! -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 ..