448d670c84
git-svn-id: http://voip.null.ro/svn/yate@408 acf43c95-373e-0410-b603-e72c3f656dc1
41 lines
677 B
Bash
41 lines
677 B
Bash
#! /bin/sh
|
|
|
|
# Script to run Yate from the build directory, optionally under gdb or valgrind
|
|
|
|
yate="./yate"
|
|
set_conf="-c ./conf.d"
|
|
set_mods="-m ./modules"
|
|
if [ "$1" = "--executable" ]; then
|
|
shift
|
|
yate="$1"
|
|
shift
|
|
fi
|
|
if [ "$1" = "--gdb" ]; then
|
|
shift
|
|
yate="gdb --args $yate"
|
|
fi
|
|
if [ "$1" = "--core" ]; then
|
|
shift
|
|
yate="gdb $yate core*"
|
|
set_conf=""
|
|
set_mods=""
|
|
fi
|
|
if [ "$1" = "--valgrind" ]; then
|
|
shift
|
|
yate="valgrind $1 $yate"
|
|
shift
|
|
fi
|
|
|
|
for opt in $@; do
|
|
case "$opt" in
|
|
-c)
|
|
set_conf=
|
|
;;
|
|
-m)
|
|
set_mods=
|
|
;;
|
|
esac
|
|
done
|
|
|
|
LD_LIBRARY_PATH=.@H323_RUN@:$LD_LIBRARY_PATH exec $yate $set_conf $set_mods "$@"
|