mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1253 from ailin-nemui/bad-version-tags
put proper versions in PACKAGE_VERSION
This commit is contained in:
commit
8f23e6c6db
@ -22,7 +22,7 @@ echo "#define IRSSI_VERSION_TIME $VERSION_TIME"
|
||||
|
||||
if echo "${VERSION}" | grep -q -- -head; then
|
||||
# -head version, get extra details from git if we can
|
||||
git_version=$(GIT_DIR=$1/.git git describe --dirty --long --always --tags 2>/dev/null)
|
||||
git_version=$(GIT_DIR=$1/.git git describe --dirty --long --tags --match '[0-9]*.[0-9]*' 2>/dev/null)
|
||||
if [ $? = 0 ]; then
|
||||
echo "#undef PACKAGE_VERSION"
|
||||
echo "#define PACKAGE_VERSION \"${git_version}\""
|
||||
|
Loading…
Reference in New Issue
Block a user