Blame


1 598139dd 2022-07-22 thomas #!/bin/sh
2 598139dd 2022-07-22 thomas #
3 4d34af8d 2022-09-13 thomas # got-portable-ver: emits the version of got which is building.
4 598139dd 2022-07-22 thomas # If this is a release build, then the tag name is chomped
5 598139dd 2022-07-22 thomas # to remove extraneous git information.
6 598139dd 2022-07-22 thomas #
7 598139dd 2022-07-22 thomas # If it's a developer build, it's left as-is.
8 598139dd 2022-07-22 thomas #
9 598139dd 2022-07-22 thomas # Intended to be called from configure.ac (via autogen.sh)
10 ab0b42ad 2024-03-11 thomas GOT_RELEASE=yes
11 9743baab 2024-02-13 thomas GOT_PORTABLE_VER=0.97
12 598139dd 2022-07-22 thomas
13 05345ace 2022-09-10 thomas [ -d ".git" -a "$GOT_RELEASE" = "no" ] || { echo "$GOT_PORTABLE_VER" ; exit ; }
14 598139dd 2022-07-22 thomas
15 598139dd 2022-07-22 thomas git describe --always --dirty 2>/dev/null || \
16 598139dd 2022-07-22 thomas echo "$GOT_PORTABLE_VER"