add compile.sh

This commit is contained in:
aozhiwei 2019-04-26 19:59:43 +08:00
parent 18eb82bc81
commit 850297aa91

12
server/bin/compile.sh Normal file
View File

@ -0,0 +1,12 @@
cd ../../
if [ $# == 0 ]; then
git checkout master
else
git checkout $1
fi
git pull
git submodule init
git submodule update
cd server/gameserver
cmake .
make