We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 794426d commit 162e213Copy full SHA for 162e213
version.sh
@@ -2,11 +2,16 @@
2
3
INSTR="$1"
4
5
-FALLBACK_VERSION='0.3.0 no-git-info'
+VERSION=0.3.1
6
7
case "$INSTR" in
8
get-vcs)
9
- git -C "$MESON_SOURCE_ROOT" describe --always --dirty || echo "$FALLBACK_VERSION"
+ 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
15
;;
16
*)
17
echo invalid arguments 1>&2
0 commit comments