Skip to content

Commit

Permalink
Merge pull request smartdevicelink#13 from SmartDeviceLinkMirror/fix/…
Browse files Browse the repository at this point in the history
…copy_sdl_libraries

Minor fixes
  • Loading branch information
dboltovskyi authored and GitHub Enterprise committed Dec 31, 2019
2 parents bcfcd1f + d486340 commit cd212d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions atf_parallels/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ The following options are required to run docker container:
## Dependencies:
- screen
- Docker
- rsync
20 changes: 17 additions & 3 deletions atf_parallels/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,33 @@

_ubuntu_ver=$1
_ubuntu_ver_default=18
_hosted_ubuntu_ver=$(lsb_release -sr 2>/dev/null)

function warning {
echo "--WARNING!"
echo "--$1"
echo ""
}

if [ -z $_ubuntu_ver ]; then
_ubuntu_ver=$_ubuntu_ver_default
echo "Ubuntu version was not specified, $_ubuntu_ver_default will be used as default"
warning "Ubuntu version was not specified, $_ubuntu_ver will be used as default"
fi

case $_ubuntu_ver in
16|18)
_ubuntu_ver=$_ubuntu_ver.04
if [ ! -z $_hosted_ubuntu_ver ]; then
if [ ! $_hosted_ubuntu_ver = $_ubuntu_ver ]; then
warning "Specified Ubuntu version '$_ubuntu_ver' does not match the hosted Ubuntu version '$_hosted_ubuntu_ver'"
fi
else
warning "Failed to detect hosted Ubuntu version"
fi

echo "Ubuntu version: "$_ubuntu_ver;;
*)
echo "Specified Ubuntu version is unexpected";
echo "Allowed versions: 16 or 18";
warning "Specified Ubuntu version '$_ubuntu_ver' is unexpected. Allowed versions: 16 or 18";
exit 1;;
esac

Expand Down
2 changes: 2 additions & 0 deletions tools/runners/parallels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function prepare_sdl {
cp -r $_path_sdl $_sdl_prepared

if [ ! -z "$_path_3rd_party" ]; then
LD_LIBRARY_PATH=$_path_3rd_party/lib:$_path_3rd_party/x86_64/lib:$LD_LIBRARY_PATH \
ldd $_sdl_prepared/bin/smartDeviceLinkCore \
| grep "$_path_3rd_party/lib\|$_path_3rd_party/x86_64/lib" \
| awk '{print $3}' \
Expand Down Expand Up @@ -232,6 +233,7 @@ function show_progress {
function clean_up {
rm -r $_tmp_dir
rm $_queue
rm $_queue_reference
}

#############################################################
Expand Down

0 comments on commit cd212d6

Please sign in to comment.