6 Star 4 Fork 7

JakeYang / Paparazzi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
paparazzi_version 420 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
DEF_VER=v5.1.0_testing
# First try git describe (if running on a git repo),
# then use default version from above (for release tarballs).
if test -d .git -o -f .git
then
GIT_VN=$(git describe --match "v[0-9].[0-9]*" --dirty --always --long)
if echo "$GIT_VN" | grep -Eq "^v[0-9].[0-9]"
then
VN="$GIT_VN"
else
VN="$DEF_VER"-none-g"$GIT_VN"
fi
else
VN="$DEF_VER"
fi
echo $VN
C
1
https://gitee.com/add358/Paparazzi.git
git@gitee.com:add358/Paparazzi.git
add358
Paparazzi
Paparazzi
master

搜索帮助