config.sh 556 B

123456789101112131415161718192021222324252627282930
  1. ###
  2. # @Descripttion:
  3. # @version:
  4. # @Author: Neo,Huang
  5. # @Date: 2020-03-10 00:01:07
  6. # @LastEditors: Please set LastEditors
  7. # @LastEditTime: 2021-06-07 12:02:56
  8. ###
  9. #!/bin/sh
  10. # 清除原先导出配置
  11. abspath=$(cd "$(dirname "$0")";pwd)
  12. configPath=${abspath}/../box-config
  13. dataPath=${abspath}
  14. if [[ -n $1 ]]; then
  15. configPath=${configPath}-${1}
  16. fi
  17. echo ${configPath}
  18. cd ${configPath}
  19. rm *.lua
  20. cd ${dataPath}
  21. git pull
  22. cd ${configPath}
  23. git pull
  24. cd ${dataPath}/script/exceltolua/
  25. python excel_to_lua.py -t s -s ${dataPath}/excel -o ${configPath}