22 lines
472 B
Bash
Executable File
22 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
|
|
env |grep -q "is_out_net"
|
|
if [ $? -eq 0 ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# git branch|grep -q "* dev"
|
|
# if [ $? -ne 0 ]; then
|
|
# echo 'not dev branch, exit'
|
|
# exit 0
|
|
# fi
|
|
|
|
# echo 'no sync protocol to svn'
|
|
|
|
git branch|grep -q "* master"
|
|
if [ $? -eq 0 ]; then
|
|
svn update ~/opensource/game2001_proto/scripts
|
|
cp -f server/tools/protobuild/cs_*.proto ~/opensource/game2001_proto/scripts
|
|
svn commit -m '同步协议' ~/opensource/game2001_proto/scripts
|
|
fi
|