mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-07 03:16:43 +00:00
configure: use a saner version string for git snapshots
This avoids using an oldish tag as base for the version string. Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
a11b51c254
commit
11a7a4cdcd
@ -360,7 +360,8 @@ AS_IF(
|
||||
[AS_CASE(
|
||||
[${PACKAGE_VERSION}],
|
||||
[git|*+git],
|
||||
[rev_id="$( git describe --tags 2>/dev/null )"
|
||||
[rev_id="$( git rev-parse --short HEAD )"
|
||||
git diff-index --quiet HEAD || rev_id="${rev_id}-dirty"
|
||||
PACKAGE_VERSION="${PACKAGE_VERSION}+${rev_id:-unknown-$( date +%Y%m%d.%H%M%S )}"
|
||||
])])
|
||||
# Arrange to have no / in the directory name, no need to create an
|
||||
|
Loading…
x
Reference in New Issue
Block a user