From 2175102ea27fa581bd21fbefdd590e9a1b09b29f Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 27 Oct 2014 11:41:28 +0800 Subject: [PATCH] remove the sync script for mirror, which maybe updated. --- trunk/scripts/csdn.mirror.sh | 80 ------------------------------------ 1 file changed, 80 deletions(-) delete mode 100755 trunk/scripts/csdn.mirror.sh diff --git a/trunk/scripts/csdn.mirror.sh b/trunk/scripts/csdn.mirror.sh deleted file mode 100755 index 776e1e8c8..000000000 --- a/trunk/scripts/csdn.mirror.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -echo "更新CSDN镜像的脚本" - -# 创建CSDN镜像的过程如下: -# 1. 在CSDN上创建项目,从https://github.com/winlinvip/simple-rtmp-server拷贝过来。 -# 2. 在本地虚拟机上: -# git clone git@code.csdn.net:winlinvip/srs-csdn.git -# 3. 创建同步的branch: -# git remote add upstream https://github.com/winlinvip/simple-rtmp-server.git -# git fetch upstream -# git checkout upstream/master -b srs.master -# 4. 执行本同步更新脚本,更新。 -# bash scripts/csdn.mirror.sh - -echo "argv[0]=$0" -if [[ ! -f $0 ]]; then - echo "directly execute the scripts on shell."; - work_dir=`pwd` -else - echo "execute scripts in file: $0"; - work_dir=`dirname $0`; work_dir=`(cd ${work_dir} && pwd)` -fi -work_dir=`(cd ${work_dir}/.. && pwd)` -product_dir=$work_dir - -# allow start script from any dir -cd $work_dir - -. ${product_dir}/scripts/_log.sh -ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi -ok_msg "导入脚本成功" - -git remote -v|grep code.csdn.net >/dev/null 2>&1 -ret=$?; if [[ 0 -ne $ret ]]; then - failed_msg "当前分支不是CSDN镜像"; - cat <