forked from WohlSoft/Moondust-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean_make.sh
executable file
·49 lines (44 loc) · 914 Bytes
/
clean_make.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
#!/bin/bash
bak=~+
cd $PWD
wasRemoved=0
kfile()
{
if [ -f $1/Makefile ]; then
rm "$1/Makefile"
echo "file $1/Makefile removed"
wasRemoved=1
fi
if [[ $(find $1 -maxdepth 1 -type f -name 'Makefile*') != "" ]]; then
rm "$1/Makefile"*
echo "file $1/Makefile* removed"
wasRemoved=1
fi
if [[ $(find $1 -maxdepth 1 -type f -name 'object_script*') != "" ]]; then
rm "$1/object_script"*
echo "file $1/object_script* removed"
wasRemoved=1
fi
}
kfile .
kfile ServerLib/ServerAPI
kfile ServerLib/ServerApp
kfile _Libs
kfile _Libs/SDL2_mixer_modified
kfile _Libs/FreeImage
kfile _Libs/luabind/_project
kfile _Libs/oolua/project
kfile Editor
kfile Engine
kfile GIFs2PNG
kfile LazyFixTool
kfile PNG2GIFs
kfile PlayableCalibrator
kfile Manager
kfile Maintainer
kfile MusicPlayer
if [ $wasRemoved -eq 0 ]; then
echo "Everything already clean!"
fi
cd $bak
if [[ "$1" != "nopause" ]]; then read -n 1; fi