Blob
- Date:
- Message:
- portable: add repo version to main string When compiling got-portable from source, outside of an official release tarball, it's often helpful to know which commit the binary was built from, especially for diagnostic purposes. This adds an extra hook to AC_INIT to derive whether -portable is being built in-tree or via a release tarball.
- Actions:
- History | Blame | Raw File
1 #!/bin/sh2 #3 # got-portable-ver: emits the version of b-em which is building.4 # If this is a release build, then the tag name is chomped5 # to remove extraneous git information.6 #7 # If it's a developer build, it's left as-is.8 #9 # Intended to be called from configure.ac (via autogen.sh)10 GOT_PORTABLE_VER=0.7512 [ -d ".git" ] || { echo "$B_EM_VERSION" ; exit ; }14 git describe --always --dirty 2>/dev/null || \15 echo "$GOT_PORTABLE_VER"