-
Notifications
You must be signed in to change notification settings - Fork 368
/
Copy pathclean.sh
executable file
·56 lines (37 loc) · 1.15 KB
/
clean.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
# clean thirdparty install and compiled libraries
# ====================================================
# import the utils
. bash_utils.sh
# ====================================================
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
set -e
print_blue "=================================================================="
print_blue "cleaning thirdparty packages and utils..."
rm -Rf thirdparty/pangolin
rm -Rf thirdparty/g2opy
rm -Rf thirdparty/protoc # set by install_delf.sh
rm -Rf thirdparty/orbslam2_features/build
rm -Rf thirdparty/orbslam2_features/lib
rm -Rf cpp/utils/build
rm -Rf cpp/utils/lib
if [ -d "thirdparty/opencv-python" ]; then
rm -Rf thirdparty/opencv-python
fi
if [ -d "thirdparty/open3d" ]; then
rm -Rf thirdparty/open3d
fi
if [ -d "thirdparty/opencv" ]; then
rm -Rf thirdparty/opencv
fi
cd thirdparty/pydbow3
./clean.sh
cd $SCRIPT_DIR
cd thirdparty/pydbow2
./clean.sh
cd $SCRIPT_DIR
cd thirdparty/pyibow
./clean.sh
cd $SCRIPT_DIR
# clean downloaded models and reset submodules
# git submodule foreach 'git reset --hard; git clean -xfd'