This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefine_variables_fedora.sh
executable file
·30 lines (29 loc) · 2.24 KB
/
define_variables_fedora.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
#!/bin/bash
export DYNAWO_RESULTS_SHOW="false"
export DYNAWO_HOME=/home/dynawo_travis/dynawo;
export DYNAWO_INSTALL_OPENMODELICA=/opt/OpenModelica/Install
export DYNAWO_SRC_OPENMODELICA=/opt/OpenModelica/Source
export DYNAWO_INSTALL_OPENMODELICA_LOCAL=/home/dynawo_travis/dynawo/OpenModelica/Install
export DYNAWO_SRC_OPENMODELICA_LOCAL=/home/dynawo_travis/dynawo/OpenModelica/Source
export DYNAWO_NB_PROCESSORS_USED=$(grep -c \^processor /proc/cpuinfo)
export DYNAWO_ADEPT_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_SUNDIALS_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_SUITE_SPARSE_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_JQUERY_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_FLOT_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_CPPLINT_DOWNLOAD_URL=http://localhost:8080
export DYNAWO_XERCESC_DOWNLOAD_URL=http://localhost:8080
export dynawo_om_env=$(echo -n "-e DYNAWO_INSTALL_OPENMODELICA -e DYNAWO_SRC_OPENMODELICA")
export dynawo_om_env_local=$(echo -n "-e DYNAWO_INSTALL_OPENMODELICA_LOCAL -e DYNAWO_SRC_OPENMODELICA_LOCAL")
export dynawo_env=$(echo -n "-e DYNAWO_HOME -e DYNAWO_NB_PROCESSORS_USED -e DYNAWO_RESULTS_SHOW -e DYNAWO_BUILD_TYPE -e DYNAWO_CXX11_ENABLED -e DYNAWO_COMPILER -e DYNAWO_LIBRARY_TYPE")
export dynawo_env_url=$(echo -n "-e DYNAWO_ADEPT_DOWNLOAD_URL -e DYNAWO_SUNDIALS_DOWNLOAD_URL -e DYNAWO_SUITE_SPARSE_DOWNLOAD_URL -e DYNAWO_JQUERY_DOWNLOAD_URL -e DYNAWO_FLOT_DOWNLOAD_URL -e DYNAWO_CPPLINT_DOWNLOAD_URL -e DYNAWO_XERCESC_DOWNLOAD_URL")
export GIT_COMMAND="git clone --depth=1 https://github.com/dynawo/dynawo.git dynawo"
export LOG_COMMAND="cd dynawo;git log -1 --decorate"
export COMMAND=$(echo -n "cd dynawo;util/envDynawo.sh build-3rd-party;RETURN_CODE=\$?;if [ \${RETURN_CODE} -ne 0 ]; then exit \${RETURN_CODE}; fi;util/envDynawo.sh build-dynawo;")
echo COMMAND $COMMAND
export NRT_COMMAND=$(echo -n "cd dynawo;util/envDynawo.sh nrt;")
echo NRT_COMMAND $NRT_COMMAND
export BUILD_OMC_COMMAND=$(echo -n "cd dynawo;export DYNAWO_SRC_OPENMODELICA=$DYNAWO_SRC_OPENMODELICA_LOCAL; export DYNAWO_INSTALL_OPENMODELICA=$DYNAWO_INSTALL_OPENMODELICA_LOCAL; util/envDynawo.sh build-3rd-party;")
echo BUILD_OMC_COMMAND $BUILD_OMC_COMMAND
export TESTS_COMMAND=$(echo -n "cd dynawo;util/envDynawo.sh build-tests;")
echo TESTS_COMMAND $TESTS_COMMAND