forked from ericyonng/FrightenStone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_run.sh
More file actions
executable file
·38 lines (35 loc) · 791 Bytes
/
linux_run.sh
File metadata and controls
executable file
·38 lines (35 loc) · 791 Bytes
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
# @file install.sh
# @author EricYonng<120453674@qq.com>
# @brief run svr...
#!/usr/bin/env bash
SCRIPT_PATH="$(cd $(dirname $0); pwd)"
DEBUG_BINS=("TestSuit_debug")
RELEASE_BINS=("TestSuit")
RUN_PATH=${SCRIPT_PATH}/output/gmake
if [ -n "$1" ]
then
VER="$1"
if [ $VER = "debug" ]
then
# debug版本的可执行文件
for binName in $DEBUG_BINS
do
nohup ${RUN_PATH}/$binName >myout.file 2>&1 &
echo "$binName run sucess"
done
else
# release版本的可执行文件
for binName in $RELEASE_BINS
do
nohup ${RUN_PATH}/$binName >myout.file 2>&1 &
echo "$binName run sucess"
done
fi
else
# release版本的可执行文件
for binName in $RELEASE_BINS
do
nohup ${RUN_PATH}/$binName >myout.file 2>&1 &
echo "$binName run sucess"
done
fi