Skip to content

Commit 162e213

Browse files
committed
bump version for release
1 parent 794426d commit 162e213

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

version.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22

33
INSTR="$1"
44

5-
FALLBACK_VERSION='0.3.0 no-git-info'
5+
VERSION=0.3.1
66

77
case "$INSTR" in
88
get-vcs)
9-
git -C "$MESON_SOURCE_ROOT" describe --always --dirty || echo "$FALLBACK_VERSION"
9+
VCS_VERSION="$(git -C "$MESON_SOURCE_ROOT" describe --always --dirty)"
10+
if [ -n "$VCS_VERSION" ]; then
11+
echo "${VERSION} (vcs=${VCS_VERSION})"
12+
else
13+
echo "${VERSION}"
14+
fi
1015
;;
1116
*)
1217
echo invalid arguments 1>&2

0 commit comments

Comments
 (0)