#!/bin/sh
# Copyright (C) 2015 - 2018 FARGOS Development, LLC
# $Id$
# Set LD_LIBRARY_PATH variable to sandbox library publication directories

targetVariable="LD_LIBRARY_PATH"
while test $# -gt 0
do
	case "${1}" in
	-h | -help | --help)
		printf "usage: %s\n" "${0}" >&2
		exit 1
		;;
	*)
		;;
	esac
	shift
done

btLibs=`echo ${BT_PATH} | awk '-F:' '{ for(i=1;i<=NF;i+=1) { print $i "/'${SB_TARGET_ARCH}'/lib"; } }' `

expandedDirs=`eval pathCondense ${LD_LIBRARY_PATH} ${STL} ${btLibs}`

printf "%s=\"%s\"\n" "${targetVariable}" "${expandedDirs}"
exit 0
