1 Star 0 Fork 75

hsx / sofa-ark

forked from SOFAStack / sofa-ark 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
change_version.sh 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
shopt -s expand_aliases
if [ ! -n "$1" ] ;then
echo "Please enter a version"
exit 1
else
echo "The updated version is $1 !"
fi
currentVersion=`sed -n '/<revision>/p' pom.xml | cut -d '>' -f2 | cut -d '<' -f1`
echo "The current version is $currentVersion"
if [ `uname` == "Darwin" ] ;then
echo "This is OS X"
alias sed='sed -i ""'
else
echo "This is Linux"
alias sed='sed -i'
fi
for filename in `find . -name "README*.md"`;do
echo "Deal with $filename"
sed "/badge\/maven/! s/$currentVersion/$1/" $filename
done
Java
1
https://gitee.com/doublehappy_admin/sofa-ark.git
git@gitee.com:doublehappy_admin/sofa-ark.git
doublehappy_admin
sofa-ark
sofa-ark
master

搜索帮助