-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathmakeEXE.sh
executable file
·62 lines (43 loc) · 1.7 KB
/
makeEXE.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
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# make build dir, remove old app
#
mkdir -p build
cd build
rm -fr quoFEM.app quoFEM
#
# build UI
#
conan install .. --build missing
cmd_status=$?; if [[ $cmd_status != 0 ]]; then echo "conan install failed"; exit $cmd_status; fi
qmake ../quoFEM.pro
cmd_status=$?; if [[ $cmd_status != 0 ]]; then echo "qmake failed"; exit $cmd_status; fi
make
cmd_status=$?; if [[ $cmd_status != 0 ]]; then echo "make failed"; exit $cmd_status; fi
#
# Copy applications from SimCentreBackend
#
mkdir ./quoFEM.app/Contents/MacOS/applications
cp -fr ../../SimCenterBackendApplications/applications/performUQ ./quoFEM.app/Contents/MacOS/applications
cp -fr ../../SimCenterBackendApplications/applications/performFEM ./quoFEM.app/Contents/MacOS/applications
cp -fr ../../SimCenterBackendApplications/applications/Workflow ./quoFEM.app/Contents/MacOS/applications
cp /usr/local/opt/libomp/lib/libomp.dylib ./quoFEM.app/Contents/MacOS/applications/performUQ/SimCenterUQ
install_name_tool -change /usr/local/opt/libomp/lib/libomp.dylib @executable_path/libomp.dylib ./quoFEM.app/Contents/MacOS/applications/performUQ/SimCenterUQ/nataf_gsa
#
# Copy OpenSees and Dakota
#
mkdir ./quoFEM.app/Contents/MacOS/applications/opensees
mkdir ./quoFEM.app/Contents/MacOS/applications/dakota
cp -fr /Users/fmckenna/bin/OpenSees3.2.2/* ./quoFEM.app/Contents/MacOS/applications/opensees
cp -fr /Users/fmckenna/dakota-6.12.0/* ./quoFEM.app/Contents/MacOS/applications/dakota
#
# Copy Example files
#
cp -fr ../Examples ./quoFEM.app/Contents/MacOS/
rm -fr ./quoFEM.app/Contents/MacOS/Examples/.archive
rm -fr ./quoFEM.app/Contents/MacOS/Examples/.aurore
rm -fr ./quoFEM.app/Contents/MacOS/Examples/.gitignore
#
# cd back to were we started
#
cd ..