]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add utils to path if the path is on disk
authorBrian West <brian@freeswitch.org>
Mon, 24 Aug 2015 22:51:26 +0000 (17:51 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 24 Aug 2015 22:51:26 +0000 (17:51 -0500)
support-d/.bashrc

index 99e6a45d9df97d9eb6a4b73569cd2096bb9a436d..4b21b517dac21d28e36d2c8c6bf62f82544fdea7 100644 (file)
@@ -6,7 +6,10 @@ export UNAME=`uname -s`
 if [ "`id -u`" = "0" ]; then
     if [ "${UNAME}" = "Linux" ]; then
        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
            export PCDIR=${PCVAR%/*}
            export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PCDIR:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig