diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-15 16:06:14 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-15 16:06:14 -0700 |
commit | f50db05823739d6982afba17eeefa6bfa49b8523 (patch) | |
tree | e7a8bc91fd7532ed521d7f3f0750749da4364b79 | |
parent | cdb52e45fa57c8173f3ce8bbda17d1eccc7897ba (diff) | |
download | syslinux-f50db05823739d6982afba17eeefa6bfa49b8523.tar.gz |
Use "git describe" in generating build signatures
We got rid of the 10-character limitation a long time ago, so we might
as well use "git describe" in generating the build signatures.
-rwxr-xr-x | gen-id.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -6,12 +6,10 @@ # if test -n "$GIT_DIR" -o -d ../.git -o -f ../.git; then - ver="$(git rev-parse HEAD | cut -c1-8)" + ver="$(git describe | cut -d- -f3-)" if test -n "$ver"; then if test -n "$(git diff-index --name-only HEAD)"; then - ver='g*'"$ver" - else - ver='g-'"$ver" + ver="${ver}"\* fi fi fi |