gotwebd: send a UNIQUE temp fd
[got-portable.git] / util / got-portable-ver.sh
blob03bc71b3cb0c7d9ea5fcada566fd94e958fcd4dd
1 #!/bin/sh
3 # got-portable-ver: emits the version of got which is building.
4 # If this is a release build, then the tag name is chomped
5 # to remove extraneous git information.
7 # If it's a developer build, it's left as-is.
9 # Intended to be called from configure.ac (via autogen.sh)
10 GOT_RELEASE=no
11 GOT_PORTABLE_VER=0.94
13 [ -d ".git" -a "$GOT_RELEASE" = "no" ] || { echo "$GOT_PORTABLE_VER" ; exit ; }
15 git describe --always --dirty 2>/dev/null || \
16 echo "$GOT_PORTABLE_VER"