1 Star 0 Fork 2.7K

eiwork / dgiot

forked from wmlyf1215 / dgiot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pkg-vsn.sh 501 Bytes
一键复制 编辑 原始数据 按行查看 历史
lsxredrain 提交于 2021-05-22 03:06 . add new project
#!/usr/bin/env bash
set -euo pipefail
# This script prints the release version for emqx
# ensure dir
cd -P -- "$(dirname -- "$0")"
if [ -f EMQX_ENTERPRISE ]; then
EDITION='enterprise'
else
EDITION='opensource'
fi
RELEASE="$(grep -E "define.+EMQX_RELEASE.+${EDITION}" include/emqx_release.hrl | cut -d '"' -f2)"
if [ -d .git ] && ! git describe --tags --match "[e|v]${RELEASE}" --exact >/dev/null 2>&1; then
SUFFIX="-$(git rev-parse HEAD | cut -b1-8)"
fi
echo "${RELEASE}${SUFFIX:-}"
Erlang
1
https://gitee.com/eiwork/dgiot.git
git@gitee.com:eiwork/dgiot.git
eiwork
dgiot
dgiot
master

搜索帮助