代码拉取完成,页面将自动刷新
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。