aboutsummaryrefslogtreecommitdiffstats
path: root/gen-id.sh
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 12:13:34 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 12:13:34 -0800
commit459a865ecfd949e7819c7674d3b450a1d1182d05 (patch)
tree17867926f262c0af2b92a66c5a03dc32d17059fb /gen-id.sh
parentf4cc3c07ffbdc3e2a429df556beb480a78988cfe (diff)
downloadsyslinux.git-459a865ecfd949e7819c7674d3b450a1d1182d05.tar.gz
syslinux.git-459a865ecfd949e7819c7674d3b450a1d1182d05.tar.xz
syslinux.git-459a865ecfd949e7819c7674d3b450a1d1182d05.zip
sysdump: *actually* generate the proper version string
Make the gen-id.sh script actually do the right thing... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gen-id.sh')
-rwxr-xr-xgen-id.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/gen-id.sh b/gen-id.sh
index 1b3e108b..301ea4eb 100755
--- a/gen-id.sh
+++ b/gen-id.sh
@@ -8,9 +8,10 @@
#
ver="$1"
-tim="$1"
+tim="$2"
+top=`dirname "$0"`
-if test -n "$GIT_DIR" -o -d ../.git -o -f ../.git; then
+if test -n "$GIT_DIR" -o -d "$top"/.git -o -f "$top"/.git; then
id="$(git describe)"
if test -n "$id"; then
if test x"$(echo "$id" | cut -d- -f1)" = xsyslinux; then