mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-05-01 00:07:19 +02:00
f2b7499f85
Still gets some warnings because compilers have changed. But should work.
26 lines
414 B
Bash
26 lines
414 B
Bash
#! /bin/sh
|
|
#
|
|
# makeldpath
|
|
#
|
|
# Create a LD_LIBRARY_PATH for all project libraries.
|
|
#
|
|
|
|
if [ "$POCO_BASE" == "" ] ; then
|
|
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
|