8 Star 12 Fork 0

Gitee 极速下载/ehcache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/ehcache/ehcache3
克隆/下载
start_next_version.sh 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
Henri Tremblay 提交于 2018-10-02 03:23 +08:00 . Script to start the next ehcache version
#!/usr/bin/env bash
###
# Call this script when starting a new major or minor version.
# It will create the branch for the previous version and update all the required files to start the new version.
#
# See https://github.com/ehcache/ehcache3/wiki/dev.release for details.
#
###
# to exit in case of error
set -e
# to see what's going on
set -v
function pause {
echo
read -p "Press [enter] to continue"
}
echo 'Welcome to the Ehcache next version wizard'
echo
echo 'This wizard will guide you through moving from a major.minor version to another. Some steps will be performed automatically, some will require your help'
echo
read -e -p "Enter the next version (x.y): " version
short_version=${version//[.]/}
echo "Upgrading gradle.properties to ${version}"
sed -i '' "s/ehcacheVersion = .*/ehcacheVersion = ${version}-SNAPSHOT/" gradle.properties
echo "Update docs sourcedir to sourcedir${short_version}"
find docs -type f -name '*.adoc' -exec sed -i '' "s/sourcedir[0-9][0-9]/sourcedir${short_version}/g" {} \;
echo "Update version in site content to ${version}"
find docs -type f -name '*.adoc' -exec sed -i '' "s/version: [0-9]\.[0-9]/version: ${version}/" {} \;
echo "Add new XSDs for ${version}"
sed -i '' "s/\/\/ needle_for_core_xsd/** Location for ${version}: \`http:\/\/www.ehcache.org\/schema\/ehcache-core-${version}.xsd\`\\
\/\/ needle_for_core_xsd/" docs/src/docs/asciidoc/user/xsds.adoc
sed -i '' "s/\/\/ needle_for_107_xsd/** Location for ${version}: \`http:\/\/www.ehcache.org\/schema\/ehcache-107-ext-${version}.xsd\`\\
\/\/ needle_for_107_xsd/" docs/src/docs/asciidoc/user/xsds.adoc
sed -i '' "s/\/\/ needle_for_transactions_xsd/** Location for ${version}: \`http:\/\/www.ehcache.org\/schema\/ehcache-tx-ext-${version}.xsd\`\\
\/\/ needle_for_transactions_xsd/" docs/src/docs/asciidoc/user/xsds.adoc
sed -i '' "s/\/\/ needle_for_clustered_xsd/** Location for ${version}: \`http:\/\/www.ehcache.org\/schema\/ehcache-clustered-ext-${version}.xsd\`\\
\/\/ needle_for_clustered_xsd/" docs/src/docs/asciidoc/user/xsds.adoc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/ehcache.git
git@gitee.com:mirrors/ehcache.git
mirrors
ehcache
ehcache
master

搜索帮助