winlin

update readme, refine the chinese summary

@@ -4,13 +4,13 @@ @@ -4,13 +4,13 @@
4 4
5 下载发布版(国内阿里云镜像): [Centos6-x86_64](http://demo.chnvideo.com:8085/srs/releases/files/SRS-CentOS6-x86_64-0.9.30.zip) 其他[more...](http://demo.chnvideo.com:8085/srs/releases/) 5 下载发布版(国内阿里云镜像): [Centos6-x86_64](http://demo.chnvideo.com:8085/srs/releases/files/SRS-CentOS6-x86_64-0.9.30.zip) 其他[more...](http://demo.chnvideo.com:8085/srs/releases/)
6 6
7 -获得源码(github): [simple-rtmp-server](https://github.com/winlinvip/simple-rtmp-server) 7 +获得源码(github): [https://github.com/winlinvip/simple-rtmp-server](https://github.com/winlinvip/simple-rtmp-server)
8 8
9 ```bash 9 ```bash
10 git clone https://github.com/winlinvip/simple-rtmp-server.git 10 git clone https://github.com/winlinvip/simple-rtmp-server.git
11 ``` 11 ```
12 12
13 -获得源码(国内CSDN镜像): [simple-rtmp-server](https://code.csdn.net/winlinvip/srs-csdn/events) 13 +获得源码(国内CSDN镜像): [https://code.csdn.net/winlinvip/srs-csdn](https://code.csdn.net/winlinvip/srs-csdn)
14 14
15 ```bash 15 ```bash
16 git clone https://code.csdn.net/winlinvip/srs-csdn.git 16 git clone https://code.csdn.net/winlinvip/srs-csdn.git
@@ -4,7 +4,8 @@ echo "更新CSDN镜像的脚本" @@ -4,7 +4,8 @@ echo "更新CSDN镜像的脚本"
4 4
5 # 创建CSDN镜像的过程如下: 5 # 创建CSDN镜像的过程如下:
6 # 1. 在CSDN上创建项目,从https://github.com/winlinvip/simple-rtmp-server拷贝过来。 6 # 1. 在CSDN上创建项目,从https://github.com/winlinvip/simple-rtmp-server拷贝过来。
7 -# 2. 在本地虚拟机上:git clone git@code.csdn.net:winlinvip/srs-csdn.git 7 +# 2. 在本地虚拟机上:
  8 +# git clone git@code.csdn.net:winlinvip/srs-csdn.git
8 # 3. 创建同步的branch: 9 # 3. 创建同步的branch:
9 # git remote add upstream https://github.com/winlinvip/simple-rtmp-server.git 10 # git remote add upstream https://github.com/winlinvip/simple-rtmp-server.git
10 # git fetch upstream 11 # git fetch upstream
@@ -28,7 +29,22 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi @@ -28,7 +29,22 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi
28 ok_msg "导入脚本成功" 29 ok_msg "导入脚本成功"
29 30
30 git remote -v|grep code.csdn.net >/dev/null 2>&1 31 git remote -v|grep code.csdn.net >/dev/null 2>&1
31 -ret=$?; if [[ 0 -ne $ret ]]; then failed_msg "当前分支不是CSDN镜像"; exit 0; fi 32 +ret=$?; if [[ 0 -ne $ret ]]; then
  33 + failed_msg "当前分支不是CSDN镜像";
  34 + cat <<END
  35 +创建CSDN镜像的过程如下:
  36 +1. 在CSDN上创建项目,从https://github.com/winlinvip/simple-rtmp-server拷贝过来。
  37 +2. 在本地虚拟机上:
  38 + git clone git@code.csdn.net:winlinvip/srs-csdn.git
  39 +3. 创建同步的branch:
  40 + git remote add upstream https://github.com/winlinvip/simple-rtmp-server.git
  41 + git fetch upstream
  42 + git checkout upstream/master -b srs.master
  43 +4. 执行本同步更新脚本,更新。
  44 + bash scripts/csdn.mirror.sh
  45 +END
  46 + exit 0;
  47 +fi
32 48
33 for ((;;)); do 49 for ((;;)); do
34 git checkout srs.master && git pull 50 git checkout srs.master && git pull