-
Notifications
You must be signed in to change notification settings - Fork 17
/
makeEXE.sh
49 lines (43 loc) · 959 Bytes
/
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
#!/bin/bash
#
# create build dir if does not exist, cd to build, conan install and then qmake
#
mkdir -p build
cd build
rm -fr Hydro_UQ.app
# conan install
conan install .. --build missing
status=$?
if [[ $status != 0 ]]
then
echo "Hydro-UQ: conan install failed";
exit $status;
fi
# qmake
qmake ../Hydro-UQ.pro
status=$?
if [[ $status != 0 ]]
then
echo "Hydro-UQ: qmake failed";
exit $status;
fi
# make
make
status=$?;
if [[ $status != 0 ]]
then
echo "Hydro-UQ: make failed";
exit $status;
fi
if [[ "$OSTYPE" == "darwin"* ]]
then
cp -r ../Examples ./Hydro_UQ.app/contents/MacOS
rm -fr ./Hydro_UQ.app/contents/MacOS/Examples/.archive
rm -fr ./Hydro_UQ.app/contents/MacOS/Examples/.aurore
rm -fr ./Hydro_UQ.app/contents/MacOS/Examples/.conf
rm -fr ./Hydro_UQ.app/contents/MacOS/Examples/Makefile
rm -fr ./Hydro_UQ.app/contents/MacOS/Examples/README.md
else
#
echo "No Examples Copied"
fi