代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_ejdb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。