-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeClean.sh
executable file
·34 lines (31 loc) · 894 Bytes
/
CMakeClean.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
#!/bin/bash
MODE=$1
if [ -z "$MODE" ]; then
MODE="quick"
fi
case $MODE in
"quick")
rm -rf `find . -name CMakeFiles`
rm -rf `find . -name CMakeCache.txt`
rm -rf `find . -name '*.cmake'`
rm -rf `find . -name Makefile`
rm -rf `find . -name '*~'`
rm -rf `find . -name '*.o'`
rm -rf `find . -name '*.mod'`
rm -rf `find . -name '*genmod.f90'`
;;
"deep")
rm -rf `find . -name CMakeFiles`
rm -rf `find . -name CMakeCache.txt`
rm -rf `find . -name '*.cmake'`
rm -rf `find . -name Makefile`
rm -rf `find . -name '*~'`
rm -rf `find . -name '*.o'`
rm -rf `find . -name '*.a'`
rm -rf `find . -name '*.so'`
rm -rf `find . -name '*.so.*'`
rm -rf `find . -name '*.mod'`
rm -rf `find . -name '*genmod.f90'`
rm -rf bin/*
;;
esac