Blame


1 598139dd 2022-07-22 thomas #!/bin/sh
2 598139dd 2022-07-22 thomas #
3 598139dd 2022-07-22 thomas # got-portable-ver: emits the version of b-em 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 598139dd 2022-07-22 thomas GOT_PORTABLE_VER=0.75
11 598139dd 2022-07-22 thomas
12 598139dd 2022-07-22 thomas [ -d ".git" ] || { echo "$B_EM_VERSION" ; exit ; }
13 598139dd 2022-07-22 thomas
14 598139dd 2022-07-22 thomas git describe --always --dirty 2>/dev/null || \
15 598139dd 2022-07-22 thomas echo "$GOT_PORTABLE_VER"