-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.sh
55 lines (46 loc) · 1.15 KB
/
uninstall.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
#!/bin/sh
####=================================
#### Uninstall all build files
####=================================
# Get platform type
if [ "$(uname)" = "Darwin" ]; then
# Do something under Mac OS X platform
SYSTEM="APPLE"
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
# Do something under GNU/Linux platform
SYSTEM="LINUX"
elif [ "$(expr substr $(uname -s) 1 10)" = "MINGW32_NT" ]; then
# Do something under Windows NT platform
SYSTEM="WIN32"
fi
# Get project top directory abs path
prjtop=$(cd "$(dirname "$0")"; pwd)
echo "Absolute path of project top directory is: "$prjtop
sleep 2
echo "Start cleaning ..."
sleep 1
# clear 3rd party software builds
if [ ${SYSTEM} = "LINUX" ]; then
echo "Cleaning FLTK..."
cd $prjtop/3rdparty
rm -rf fltk-1.3.3/build
fi
# clear blas
echo "Cleaning BLAS..."
cd $prjtop/3rdparty/blas/BLAS-3.6.0
make clean
rm *.a
# clear CBLAS
echo "Cleaning CBLAS..."
cd $prjtop/3rdparty/blas/CBLAS
make clean
rm lib/*.a
# clear LAPACK
echo "Cleaning LAPACK..."
cd $prjtop/3rdparty/lapack-3.7.0
rm -rf build
# clear RAOS builds
echo "Cleaning RAOS..."
cd $prjtop
rm -rf build
echo "Uninstall done"