#!/bin/bash echo_green_str() { echo -e "\033[32m${1}\033[0m" } echo_green_str "初始化环境" cd .. workPath=`cd $(dirname $0); pwd -P` cliPath=${workPath}/pandora_cli_proj svrPath=${workPath}/pandora_svr_proj sharePath=${workPath}/pandora_share_proj svn revert -R pandora_cli_proj #svn revert -R pandora_share_proj #svn revert -R pandora_svr_proj svn up pandora_cli_proj svn up pandora_share_proj svn up pandora_svr_proj echo_green_str "编译ExcelExcelExpor" cd ${sharePath} chmod 774 *.sh cd ${sharePath}/ExcelExport chmod 774 macBuild.sh ./macBuild.sh echo_green_str "编译protostruct" cd ${svrPath}/tools chmod 774 macbuildprotostruct.sh ./macbuildprotostruct.sh echo_green_str "添加权限" cd ${svrPath}/ctrl_sh chmod 774 *.sh cd ${sharePath}/protocol chmod 774 genMacBuildServer.sh chmod 774 osx.10.12-x64/bin/protocsstruct cd ${sharePath}/ExcelExport chmod 774 run_SpeedMac.sh