forked from Mirrors/freeswitch
find prefix better
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15438 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
227bf9580a
commit
13b26efba1
|
@ -4,10 +4,12 @@ arg=$1
|
|||
shift
|
||||
|
||||
prefix=$(cat config.status | grep @prefix@ | awk -F, '{print $3}')
|
||||
if [ -z "$prefix" ] ; then
|
||||
prefix=$(cat config.status | grep '"prefix"' | awk -F\" '{print $4}')
|
||||
fi
|
||||
|
||||
if [ -z "$prefix" ] ; then
|
||||
echo "Cannot determine prefix!"
|
||||
exit 255
|
||||
prefix="/usr/local/freeswitch"
|
||||
fi
|
||||
|
||||
if [ "$arg" = "gcore" ] ; then
|
||||
|
|
Loading…
Reference in New Issue