Newer
Older
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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#set -e
#set -vx
clear
CURPWD=`pwd`
if [ ! "${PWD##*/}" == "objs" ]
then
cd ../objs
if [ ! $? == 0 ]
then
echo "Please move to PROJECT/obj directory"
exit 1
fi
fi
if [ -f ./core ]
then
rm -f ./core
fi
if [ "$1" == "d" ]
then
make run_d
elif [ "$1" == "v" ]
then
make run_v
else
make run
fi
#if [ "${OSTYPE}" == "cygwin" ]
#then
# ../bin/SIPmsg.exe 127.0.0.1 12000
#else
# ../bin/SIPmsg 127.0.0.1 12000
#fi
cd ${CURPWD}