You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
1.3 KiB

#!/bin/bash
set -x
echo_green_str()
{
echo -e "\033[32m${1}\033[0m"
}
echo_red_str()
{
echo -e "\033[31m${1}\033[0m"
}
cd ..
workPath=`cd $(dirname $0); pwd -P`
cliPath=${workPath}/pandora_cli_proj
svrPath=${workPath}/pandora_svr_proj
sharePath=${workPath}/pandora_share_proj
#关闭进程
echo_green_str "kill all server"
cd ${svrPath}/ctrl_sh
chmod u+x kill_all.sh
./kill_all.sh
#更新svn
echo_green_str "Begin Update svn"
cd ${workPath}
svn cleanup pandora_share_proj
svn cleanup pandora_svr_proj
svn update pandora_share_proj
svn update pandora_svr_proj
svn cleanup pandora_cli_proj
svn update pandora_cli_proj
echo_green_str "End Update svn"
#导表
echo_green_str "Begin Load Export"
cd ${sharePath}/ExcelExport
rm -rf ${svrPath}/cfg/data/*.txt
chmod u+x run_SpeedMac.sh
./run_SpeedMac.sh
echo_green_str "End Load Export"
#protocol
echo_green_str "Begin Load protocol"
cd ${sharePath}/protocol
rm -rf ${svrPath}/ServerComm/protocol/*.cs
chmod u+x genMacBuildServer.sh
./genMacBuildServer.sh
echo_green_str "End Load protocol"
#更新地牢地图
cd ${svrPath}
chmod u+x updateDungeonMap.sh
./updateDungeonMap.sh
#编译
echo_green_str "Begin build server"
cd ${svrPath}/ctrl_sh
chmod u+x *.sh
source build.sh
echo_green_str "End build server"
#起服
echo_green_str "start all server"
cd ${svrPath}/ctrl_sh
./start_all.sh
echo_green_str "success"