-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoclean
executable file
·38 lines (33 loc) · 859 Bytes
/
doclean
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
#!/bin/sh
set -eu
THIS_FILE=$(readlink -f "$0")
BASEDIR=$(dirname "$THIS_FILE")
function rm_folder_if_exists() {
if test -d $BASEDIR/$1
then
rm -r $BASEDIR/$1
fi
}
function rm_file_if_exists() {
if test -f $BASEDIR/$1
then
rm $BASEDIR/$1
fi
}
rm_folder_if_exists .gradle
rm_folder_if_exists build
rm_folder_if_exists tmpfile/.cxx
rm_folder_if_exists tmpfile/build
rm_folder_if_exists tests/.cxx
rm_folder_if_exists tests/build
rm_folder_if_exists sampleapp/.gradle
rm_folder_if_exists sampleapp/build
rm_folder_if_exists sampleapp/app/.cxx
rm_folder_if_exists sampleapp/app/build
rm_folder_if_exists .idea
rm_file_if_exists tmpfile-android.iml
rm_file_if_exists tmpfile/tmpfile.iml
rm_file_if_exists tests/tests.iml
rm_folder_if_exists sampleapp/.idea
rm_file_if_exists sampleapp/sampleapp.iml
rm_file_if_exists sampleapp/app/app.iml