1 Star 0 Fork 23

MyOpenHarmony/third_party_ejdb_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release.sh 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
stesen 提交于 2021-08-18 22:07 . Description:[feature] add ejdb
#!/bin/bash
set -e
# set -x
SCRIPTPATH="$(
cd "$(dirname "$0")"
pwd -P
)"
cd $SCRIPTPATH
readme() {
echo "Generating README.md";
cat "./BASE.md" > "./README.md"
echo -e "\n\n" >> "./README.md"
cat "./src/bindings/ejdb2_android/README.md" >> "./README.md"
echo -e "\n\n" >> "./README.md"
# cat "./src/bindings/ejdb2_swift/EJDB2Swift/README.md" >> "./README.md"
# echo -e "\n\n" >> "./README.md"
cat "./src/jql/README.md" >> "./README.md"
echo -e "\n\n" >> "./README.md"
cat "./src/jbr/README.md" >> "./README.md"
echo -e "\n\n" >> "./README.md"
cat "./docker/README.md" >> "./README.md"
echo -e "\n\n" >> "./README.md"
cat "./CAPI.md" >> "./README.md"
echo -e '\n# License\n```\n' >> "./README.md"
cat "./LICENSE" >> "./README.md"
echo -e '\n```\n' >> "./README.md"
}
release_tag() {
echo "Creating EJDB2 release"
readme
git pull origin master
dch --distribution testing --no-force-save-on-release --release "" -c ./Changelog
VERSION=`dpkg-parsechangelog -l./Changelog -SVersion`
TAG="v${VERSION}"
CHANGESET=`dpkg-parsechangelog -l./Changelog -SChanges | sed '/^ejdb2.*/d' | sed '/^\s*$/d'`
git add ./Changelog
git add ./README.md
if ! git diff-index --quiet HEAD --; then
git commit -a -m"${TAG} landed"
git push origin master
fi
echo "${CHANGESET}" | git tag -f -a -F - "${TAG}"
git push origin -f --tags
}
while [ "$1" != "" ]; do
case $1 in
"-d" ) readme
exit
;;
"-r" ) release_tag
exit
;;
esac
shift
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/myopenharmony/third_party_ejdb_1.git
git@gitee.com:myopenharmony/third_party_ejdb_1.git
myopenharmony
third_party_ejdb_1
third_party_ejdb_1
master

搜索帮助