Files
bitchx/gitversion.sh
Kevin Easton 3b80790a31 Define VERSION in configure, and add git describe output if available.
The client release version is now defined in configure.in rather than
source/irc.c.  The gitversion.sh script is used to automatically add a
suffix to the version number for versions of the client built from git.

Also removed AC_REVISION() from configure.in, because $Revision$ doesn't
make sense with git.
2015-03-16 23:04:43 +11:00

17 lines
199 B
Bash
Executable File

#!/bin/sh
test $# -gt 0 || exit
tag="$1"
if test $# -gt 1; then
cd $2 || exit
fi
test -d .git || exit
desc=`git describe --match "$tag" 2>/dev/null` || exit
echo "$desc" | sed -e "s@^$tag@@"