Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
bcf97b60
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bcf97b60
编写于
4月 04, 2018
作者:
彭
彭勇升 pengys
提交者:
wu-sheng
4月 04, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Source release from the new codes by git clone. (#1023)
上级
1deb90a2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
35 addition
and
16 deletion
+35
-16
tools/releasing/create_source_release.sh
tools/releasing/create_source_release.sh
+35
-16
未找到文件。
tools/releasing/create_source_release.sh
浏览文件 @
bcf97b60
...
...
@@ -17,14 +17,22 @@
# limitations under the License.
#
##
## Variables with defaults (if not overwritten by environment)
##
# This script relies on few environment variables to determine source code package
# behavior, those variables are:
# RELEASE_VERSION -- The version of this source package.
# For example: RELEASE_VERSION=5.0.0-alpha
RELEASE_VERSION
=
${
RELEASE_VERSION
}
TAG_NAME
=
"v"
${
RELEASE_VERSION
}
PRODUCT_NAME
=
"apache-skywalking-apm-incubating"
echo
"Release version "
${
RELEASE_VERSION
}
echo
"Source tag "
${
TAG_NAME
}
if
[
"
$RELEASE_VERSION
"
==
""
]
;
then
echo
"RELEASE_VERSION variable is null"
echo
"RELEASE_VERSION environment variable not found, Please setting the RELEASE_VERSION."
echo
"For example: export RELEASE_VERSION=5.0.0-alpha"
exit
1
fi
...
...
@@ -35,18 +43,29 @@ PRODUCT_NAME=${PRODUCT_NAME}-${RELEASE_VERSION}
rm
-rf
${
PRODUCT_NAME
}
mkdir
${
PRODUCT_NAME
}
rsync
-a
../../
\
--exclude
".git"
--exclude
".gitignore"
--exclude
".gitattributes"
--exclude
".travis.yml"
\
--exclude
"deploysettings.xml"
--exclude
"CHANGELOG"
--exclude
".github"
--exclude
"target"
\
--exclude
".idea"
--exclude
"*.iml"
--exclude
".DS_Store"
--exclude
"build-target"
\
--exclude
"/docs/"
--exclude
"/dist/"
--exclude
"/tools/"
--exclude
"/skywalking-agent/"
\
--exclude
"/skywalking-ui/dist/"
--exclude
"/skywalking-ui/node/"
--exclude
"/skywalking-ui/node_modules/"
\
--exclude
"dependency-reduced-pom.xml"
\
${
PRODUCT_NAME
}
git clone https://github.com/apache/incubator-skywalking.git ./
${
PRODUCT_NAME
}
cd
${
PRODUCT_NAME
}
TAG_EXIST
=
`
git tag
-l
${
TAG_NAME
}
|
wc
-l
`
if
[
${
TAG_EXIST
}
-ne
1
]
;
then
echo
"Could not find the tag named"
${
TAG_NAME
}
exit
1
fi
git checkout
${
TAG_NAME
}
git submodule init
git submodule update
cd
..
tar
czf
${
PRODUCT_NAME
}
-src
.tgz
${
PRODUCT_NAME
}
tar
czf
${
PRODUCT_NAME
}
-src
.tgz
\
--exclude
${
PRODUCT_NAME
}
/.git/
--exclude
${
PRODUCT_NAME
}
/.DS_Store/
\
--exclude
${
PRODUCT_NAME
}
/.github/
--exclude
${
PRODUCT_NAME
}
/.gitignore/
\
--exclude
${
PRODUCT_NAME
}
/.gitmodules/
--exclude
${
PRODUCT_NAME
}
/.travis.yml
\
${
PRODUCT_NAME
}
gpg
--armor
--detach-sig
$
PRODUCT_NAME
-src
.tgz
gpg
--armor
--detach-sig
$
{
PRODUCT_NAME
}
-src
.tgz
md5
-r
$PRODUCT_NAME
-src
.tgz
>
$PRODUCT_NAME
-src
.tgz.md5
shasum
-a
512
$PRODUCT_NAME
-src
.tgz
>
$PRODUCT_NAME
-src
.tgz.sha512
shasum
-a
512
${
PRODUCT_NAME
}
-src
.tgz
>
${
PRODUCT_NAME
}
-src
.tgz.sha512
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录