-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclean
More file actions
executable file
·48 lines (37 loc) · 774 Bytes
/
clean
File metadata and controls
executable file
·48 lines (37 loc) · 774 Bytes
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
#!/bin/bash
trap exit__ ERR
exit__()
{
echo "Something is wrong. Exiting..."
exit -1
}
list_dirs=`ls -I backup -I shared -I doc -I clean -I build -I setup -I run-all -I README.md -I cpp-format -I vim-copy -I .vimrc`
lock=1
if [ ! -d "backup/" ]; then
mkdir "backup/"
fi
for local_dir in ${list_dirs[@]}
do
cd ${local_dir}/build/Debug
if [ ! -d "../../bin/Debug/" ]; then
mkdir "../../bin/Debug/"
fi
if [ ! -d "../../bin/Debug/Data" ]; then
mkdir "../../bin/Debug/Data"
fi
./clean -o
cd ../Release/
if [ ! -d "../../bin/Release/" ]; then
mkdir "../../bin/Release/"
fi
if [ ! -d "../../bin/Release/Data" ]; then
mkdir "../../bin/Release/Data"
fi
./clean -o
cd ../../gmsh
if [ ! -d "data" ]; then
mkdir "data"
fi
./clean
cd ../../
done