mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
Fix version generation error without git in Linux/Mac
This commit is contained in:
parent
f7a0e460dc
commit
93a3a03fc6
13
version.sh
13
version.sh
@ -1,4 +1,11 @@
|
||||
#!/bin/sh
|
||||
DIR="`dirname "$0"`"
|
||||
VERSION="`git describe --always | tr : _`"
|
||||
echo "$VERSION"
|
||||
|
||||
# get current git version, redirect stderr to stdin, change : to _
|
||||
VERSION=$(git describe --always --tag 2>&1 | tr : _ )
|
||||
|
||||
# ignore git stderr "fatal:
|
||||
if case $VERSION in fatal*) ;; *) false;; esac; then
|
||||
echo ""
|
||||
else
|
||||
echo "$VERSION"
|
||||
fi;
|
||||
|
Loading…
Reference in New Issue
Block a user