mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
build-sys: drop compat with old git versions so that tarballs for -test1 style evrsions are properly created
This commit is contained in:
parent
5b78752a04
commit
5651c03920
1 changed files with 12 additions and 12 deletions
|
|
@ -106,18 +106,18 @@ then
|
||||||
# tag or the previous older version that did not?
|
# tag or the previous older version that did not?
|
||||||
# Newer: v6.10-77-g0f8faeb
|
# Newer: v6.10-77-g0f8faeb
|
||||||
# Older: v6.10-g0f8faeb
|
# Older: v6.10-g0f8faeb
|
||||||
case $v in
|
# case $v in
|
||||||
*-*-*) : git describe is okay three part flavor ;;
|
# *-*-*) : git describe is okay three part flavor ;;
|
||||||
*-*)
|
# *-*)
|
||||||
: git describe is older two part flavor
|
# : git describe is older two part flavor
|
||||||
# Recreate the number of commits and rewrite such that the
|
# # Recreate the number of commits and rewrite such that the
|
||||||
# result is the same as if we were using the newer version
|
# # result is the same as if we were using the newer version
|
||||||
# of git describe.
|
# # of git describe.
|
||||||
vtag=`echo "$v" | sed 's/-.*//'`
|
# vtag=`echo "$v" | sed 's/-.*//'`
|
||||||
numcommits=`git rev-list "$vtag"..HEAD | wc -l`
|
# numcommits=`git rev-list "$vtag"..HEAD | wc -l`
|
||||||
v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
|
# v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`;
|
||||||
;;
|
# ;;
|
||||||
esac
|
# esac
|
||||||
|
|
||||||
# Change the first '-' to a '.', so version-comparing tools work properly.
|
# Change the first '-' to a '.', so version-comparing tools work properly.
|
||||||
# Remove the "g" in git describe's output string, to save a byte.
|
# Remove the "g" in git describe's output string, to save a byte.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue