mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
13 lines
258 B
Bash
Executable file
13 lines
258 B
Bash
Executable file
#!/bin/sh
|
|
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
|
|
if type git >/dev/null 2>/dev/null && [ -d .git ]; then
|
|
version="$(git describe --dirty --tags --match 'v*')"
|
|
else
|
|
version="$(awk '/#define KVZ_VERSION/ { print $3 }' src/global.h)"
|
|
fi
|
|
|
|
printf '%s\n' "$version"
|