diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-27 15:39:53 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-11-27 15:39:53 -0800 |
commit | ca7edf2fa3283bf6085bfe3711a6423938e55a41 (patch) | |
tree | 1d641f061ab93bb8c418a6d91643fe507616db05 /maintainer | |
parent | 15d1724bd1983e25cad85cc57fd5bb3e4cda22b8 (diff) | |
download | crosstool-ng-ca7edf2fa3283bf6085bfe3711a6423938e55a41.tar.gz crosstool-ng-ca7edf2fa3283bf6085bfe3711a6423938e55a41.tar.bz2 crosstool-ng-ca7edf2fa3283bf6085bfe3711a6423938e55a41.zip |
Abbreviate to 7 characters when building out of git
Otherwise, release tarballs look weird with strings varying in length.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rwxr-xr-x | maintainer/git-version-gen | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintainer/git-version-gen b/maintainer/git-version-gen index 6d073fca..4a6d3312 100755 --- a/maintainer/git-version-gen +++ b/maintainer/git-version-gen @@ -155,8 +155,8 @@ then # directory, and "git describe" output looks sensible, use that to # derive a version string. elif test "`git log -1 --pretty=format:x . 2>&1`" = x \ - && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \ - || git describe --abbrev=4 HEAD 2>/dev/null` \ + && v=`git describe --abbrev=7 --match="$prefix*" HEAD 2>/dev/null \ + || git describe --abbrev=7 HEAD 2>/dev/null` \ && v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \ && case $v in $prefix[0-9]*) ;; |