2022-01-21 02:24:36 +01:00
|
|
|
#! /bin/sh
|
2022-01-16 06:09:36 +01:00
|
|
|
|
2022-02-10 14:47:38 +01:00
|
|
|
LC_ALL=C
|
|
|
|
export LC_ALL
|
|
|
|
|
2022-07-02 14:01:18 +02:00
|
|
|
srcdir="$(dirname "$0")"
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
cd "$srcdir"
|
|
|
|
|
2022-07-02 12:13:57 +02:00
|
|
|
[ -f version ] || ( git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h' ) | sed 's/^v//g' | xargs printf '%s'
|
|
|
|
[ -f version ] && ( cat version 2>/dev/null ) | xargs printf '%s'
|