poco/build/script/makeldpath

26 lines
414 B
Plaintext
Raw Normal View History

#! /bin/sh
#
# makeldpath
#
# Create a LD_LIBRARY_PATH for all project libraries.
#
if [ "$POCO_BASE" == "" ] ; then
2022-07-07 17:18:20 +08:00
echo $0": POCO_BASE is not set."
exit 1
fi
projectList=$(cat "${POCO_BASE}"/components)
OSNAME=$(uname)
OSARCH=$(uname -m | tr " /" "_-")
for proj in $projectList ;
do
path=${POCO_BASE}/${proj}/lib/${OSNAME}/${OSARCH}
echo "$path"
if [ -d "$path" ] ; then
printf ":%s" "$path"
fi
done