File: makeldpath

package info (click to toggle)
poco 1.3.6p1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 21,916 kB
  • sloc: cpp: 159,767; ansic: 91,785; makefile: 914; sh: 553; xml: 59; perl: 29
file content (27 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh
#
# makeldpath
#
# $Id: //poco/1.3/build/script/makeldpath#1 $
#
# 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
		echo -n ":"$path
	fi
done