-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup
More file actions
executable file
·40 lines (30 loc) · 752 Bytes
/
setup
File metadata and controls
executable file
·40 lines (30 loc) · 752 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
#!/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`
shared_include=`ls shared/include`
shared_src=`ls shared/src`
for local_dir in ${list_dirs[@]}
do
echo Setting up ${local_dir} ...
cd ${local_dir}
rm -rf compile_commands.json
ln -s build/Debug/compile_commands.json
cd ../
cd ${local_dir}/build/Debug
rm -rf build
ln -s ../../../shared/scripts/build_debug build
cd ../Release
rm -rf build
ln -s ../../../shared/scripts/build_release build
cd ../../bin/Release/
cd ../../../
cd ${local_dir}/gmsh
rm -rf clone
ln -s ../../shared/scripts/clone
cd ../../
done