2012-04-23 01:14:34 +00:00
|
|
|
#! /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."
|
2012-04-23 01:14:34 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-18 18:48:20 +02:00
|
|
|
projectList=$(cat "${POCO_BASE}"/components)
|
2012-04-23 01:14:34 +00:00
|
|
|
|
2023-10-18 18:48:20 +02:00
|
|
|
OSNAME=$(uname)
|
|
|
|
OSARCH=$(uname -m | tr " /" "_-")
|
2012-04-23 01:14:34 +00:00
|
|
|
|
|
|
|
for proj in $projectList ;
|
|
|
|
do
|
|
|
|
path=${POCO_BASE}/${proj}/lib/${OSNAME}/${OSARCH}
|
2023-10-18 18:48:20 +02:00
|
|
|
echo "$path"
|
|
|
|
if [ -d "$path" ] ; then
|
|
|
|
printf ":%s" "$path"
|
2012-04-23 01:14:34 +00:00
|
|
|
fi
|
|
|
|
done
|