aboutsummaryrefslogtreecommitdiffstats
path: root/gen-id.sh
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-07-15 16:06:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-07-15 16:06:14 -0700
commitf50db05823739d6982afba17eeefa6bfa49b8523 (patch)
treee7a8bc91fd7532ed521d7f3f0750749da4364b79 /gen-id.sh
parentcdb52e45fa57c8173f3ce8bbda17d1eccc7897ba (diff)
downloadsyslinux-elf-f50db05823739d6982afba17eeefa6bfa49b8523.tar.gz
syslinux-elf-f50db05823739d6982afba17eeefa6bfa49b8523.tar.xz
syslinux-elf-f50db05823739d6982afba17eeefa6bfa49b8523.zip
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.
Diffstat (limited to 'gen-id.sh')
-rwxr-xr-xgen-id.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/gen-id.sh b/gen-id.sh
index 02be21a4..c8f89793 100755
--- a/gen-id.sh
+++ b/gen-id.sh
@@ -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