.#!/bin/bash set -x for i in "$@"; do if [[ $i = *"="* ]]; then eval "$i" fi done cur_dir=$(cd $(dirname $0); pwd) proj_dir=$cur_dir/../.. share_dir=$proj_dir/pandora_share_proj echo $proj_dir echo $share_dir cli_dir=$proj_dir/pandora_cli_proj cd $cli_dir # git fetch # git clean -f -d # git checkout -f $client_branch # if [ "$tag" != "" ]; then # git reset $tag --hard # fi # git pull svn cleanup svn cleanup --remove-unversioned svn revert --depth=infinity . svn update ret=$? if [ $ret != 0 ]; then exit $ret fi cd $share_dir # git fetch # git clean -f -d # git checkout -f $share_branch # if [ "$tag" != "" ]; then # git reset $tag --hard # fi # git pull svn cleanup svn cleanup --remove-unversioned svn revert --depth=infinity . svn update ret=$? if [ $ret != 0 ]; then exit $ret fi echo "run_SpeedMac" cd $share_dir/ExcelExport ./run_SpeedWin.sh #os.popen("run_SpeedWin.bat") ret=$? if [ $ret != 0 ]; then exit $ret fi #echo "BuildHotFix" #cd $share_dir #./BuildHotFix.sh #ret=$? #if [ $ret != 0 ]; then # exit $ret #fi echo "excelTolua" cd $share_dir/ExcelExport python excelTolua.py ret=$? if [ $ret != 0 ]; then exit $ret fi echo "ExportLanguageToText" python ExportLanguageToText.py ret=$? if [ $ret != 0 ]; then exit $ret fi # echo "generate_proto_parser" # cd $share_dir/protocol # python generate_proto_parser.py # ret=$? # if [ $ret != 0 ]; then # exit $ret # fi cd $share_dir/protocol echo "export_lua" python export_lua.py ret=$? if [ $ret != 0 ]; then exit $ret fi echo "finish export share"