forked from Mirrors/freeswitch
add utils to path if the path is on disk
This commit is contained in:
parent
f1d1db9f5b
commit
9fd5024023
|
@ -6,7 +6,10 @@ export UNAME=`uname -s`
|
||||||
if [ "`id -u`" = "0" ]; then
|
if [ "`id -u`" = "0" ]; then
|
||||||
if [ "${UNAME}" = "Linux" ]; then
|
if [ "${UNAME}" = "Linux" ]; then
|
||||||
export PATH="$PATH:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/local/freeswitch/bin"
|
export PATH="$PATH:/opt/bin:/usr/local/bin:/usr/local/sbin:/usr/local/freeswitch/bin"
|
||||||
export PCVAR=`find / -name freeswitch.pc| grep -v build/freeswitch.pc`
|
if [ -d /usr/src/freeswitch.git/support-d/utils ]; then
|
||||||
|
export PATH="/usr/src/freeswitch.git/support-d/utils:$PATH"
|
||||||
|
fi
|
||||||
|
export PCVAR=`find /usr -name freeswitch.pc| grep -v build/freeswitch.pc`
|
||||||
if [ -n "$PCVAR" ]; then
|
if [ -n "$PCVAR" ]; then
|
||||||
export PCDIR=${PCVAR%/*}
|
export PCDIR=${PCVAR%/*}
|
||||||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PCDIR:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig
|
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PCDIR:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig
|
||||||
|
|
Loading…
Reference in New Issue