Blame view

publish/publish.sh 618 Bytes
4d6f285d   zhouhaihai   增加发布功能
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
  
  branch=$1
  csvdata=$2
  dist=$3
  
  if [[ $branch == '' ]]; then
  	echo "输入 要同步的分支  eg: develop"
  	exit
  fi
  
  if [[ $dist == '' ]]; then
  	dist="./dist"
  fi
  
  if [[ $csvdata == '' ]]; then
  	echo "输入 要同步的配表分支  eg: develop"
  	exit
  fi
  
  git checkout $branch
  git pull
  cd src/csvdata
  git checkout $csvdata
  git pull
  cd -
  
  rsync -aP --exclude=".git" ./src/ ${dist}/src/
  rsync -aP ./publish/skynet ${dist}/
  rsync -aP --exclude={config/develop.lua,config/nodenames.lua} config ${dist}/
4500c9b8   zhouhaihai   满了不飘字
31
32
  # cp kill.sh ${dist}/
  # cp run.sh ${dist}/
4d6f285d   zhouhaihai   增加发布功能
33
34
  
  # rsync -aP --exclude-from="./publish/exclude.list" ${origin}/ ./${dist}/