aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/man/publish.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/man/publish.sh b/docs/man/publish.sh
index 23889f45..41282ac7 100755
--- a/docs/man/publish.sh
+++ b/docs/man/publish.sh
@@ -35,7 +35,7 @@ GITVERS=$(cd ${srcdir}; git describe --always)
if [[ -z "${VERSION}" ]]
then
- if [[ "${GITVERS}" == *-* ]]
+ if [[ "${GITVERS}" == *-g??????? ]]
then
if [[ "${GITVERS}" == "${TIPVERS}" ]]
then
@@ -49,9 +49,11 @@ then
fi
fi
+# strip leading v in v1.0.0
+VERSION=${VERSION#v}
printf "PUBLISHING version ${VERSION}\n"
-if [ ${VERSION} == tip ]
+if [ "${VERSION}" == tip ]
then
dstman=${dstdir}/man/tip
else