-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcmake_clean
60 lines (54 loc) · 3.02 KB
/
cmake_clean
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
57
58
59
#!/bin/bash
#NOT_PATH=-and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*"
DELETE_THIS="
CMakeFiles
Makefile
cmake_install.cmake
CMakeCache.txt
cython_debug
SdkMasterLog.csv
deviceQuery.txt
*.so
*.a
*.o
*.pyc
*.html
*.cxx
"
#.cproject
#.project
for i in ${DELETE_THIS}; do
find . -iname "$i" \
-path "*apps/*" \
-path "*cmake/*" \
-path "*cuda/*" \
-path "*framework/*" \
-path "*jo/*" \
-path "*jp/*" \
-path "*lib/*" \
-exec rm -r '{}' \;
rm -r "$i"
done
# for i in ${DELETE_THIS}; do
# find . -iname "$i" \
# -not -path *sys/* \
# -not -path "*Release/*" \
# -not -path "*Debug/*" \
# -not -path "*Profile/*" \
# -exec rm -r '{}' \;
# done
#find . -iname "CMakeFiles" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "Makefile" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "cmake_install.cmake" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "CMakeCache.txt" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "cython_debug" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "SdkMasterLog.csv" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "deviceQuery.txt" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.so" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.a" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.o" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.pyc" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname ".cproject" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname ".project" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.html" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;
#find . -iname "*.cxx" -and -not -path *sys/* -not -path "*Release/*" -and -not -path "*Debug/*" -and -not -path "*Profile/*" -exec rm -r '{}' \;