Commit 0221cb5a authored by Ryan Berkheimer's avatar Ryan Berkheimer
Browse files

added shell refresh to pickup updated params.

parent d395b8ac
Pipeline #5810 failed with stage
in 0 seconds
......@@ -54,10 +54,9 @@ update_libs_var () {
sed '/#messageapi_c_cpp_set_libs/d' "${BASHRC}" > "${BASHRC_TMP}"
mv "${BASHRC_TMP}" "${BASHRC}"
echo "export MESSAGEAPI_LIBS=${LIBS_INSTALL_DIR} #messageapi_c_cpp_set_libs" >> "${BASHRC}"
export MESSAGEAPI_LIBS=${LIBS_INSTALL_DIR}
sed '/#messageapi_c_cpp_ld_library_path/d' "${BASHRC}" > "${BASHRC_TMP}"
mv "${BASHRC_TMP}" "${BASHRC}"
echo "export LD_LIBRARY_PATH=${MESSAGEAPI_LIBS}:\$LD_LIBRARY_PATH #messageapi_c_cpp_ld_library_path" >> "${BASHRC}"
echo "export LD_LIBRARY_PATH=${LIBS_INSTALL_DIR}:\$LD_LIBRARY_PATH #messageapi_c_cpp_ld_library_path" >> "${BASHRC}"
echo "Added a 'MESSAGEAPI_LIBS' environment variable to ${BASHRC} for convenient inclusion of the C/C++ shared library."
echo "Updated the LD_LIBRARY_PATH environment variable to include the MESSAGEAPI_LIBS path."
echo "When creating a C/C++ program that uses the MessageAPI session library, you can use the MESSAGEAPI_LIBS as the linking location."
......@@ -128,6 +127,10 @@ install_templates () {
echo ""
}
refresh_shell () {
exec env --ignore-environment /bin/bash
}
BASHRC=${HOME}/.bashrc
BASHRC_TMP=${HOME}/.bashrc_tmp
......@@ -149,5 +152,6 @@ install_src
update_src_var
install_templates
update_template_var
refresh_shell
echo "Finished installing the MessageAPI C/C++ libs, headers, src, and build templates for user $(whoami)."
echo ""
\ No newline at end of file
......@@ -19,6 +19,11 @@ install_core_jar () {
echo ""
}
refresh_shell () {
exec env --ignore-environment /bin/bash
}
BASHRC=${HOME}/.bashrc
BASHRC_TMP=${HOME}/.bashrc_tmp
......@@ -34,5 +39,6 @@ echo ""
echo "Installing the MessageAPI-Core Jar for the current user $(whoami)"
install_core_jar
update_classpath_var
refresh_shell
echo "Finished installing the MessageAPI-Core Jar for user $(whoami)."
echo ""
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment