Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ryan Berkheimer
messageapi
Commits
0221cb5a
Commit
0221cb5a
authored
Jul 18, 2020
by
Ryan Berkheimer
Browse files
added shell refresh to pickup updated params.
parent
d395b8ac
Pipeline
#5810
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/install/c/main/install.sh
View file @
0221cb5a
...
...
@@ -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
scripts/install/java/main/install.sh
View file @
0221cb5a
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment