diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-09-13 14:12:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-09-19 13:07:29 +0200 |
commit | 0b3607f89ac24f84f8b22ffaadb4f0fd111bda24 (patch) | |
tree | 8ee735831a1d75cf4ba1166f9f842a81922d601f /scripts | |
parent | e144bb7af49ca8756b7222a75811f3b85b0bc1f5 (diff) | |
download | seabios-0b3607f89ac24f84f8b22ffaadb4f0fd111bda24.tar.gz |
fix buildversion.sh
Recent git versions place the submodule git repos into the
.git/modules directory of the toplevel repo. In that case
.git of the seabios tree isn't a directory, but a regular
file, saying where the gitdir is.
Extent the git check to also allow .git being a regular file,
so buildversion.sh works correctly when called within the qemu
submodule.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/buildversion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildversion.sh b/scripts/buildversion.sh index c8c1725e..e5ce96c6 100755 --- a/scripts/buildversion.sh +++ b/scripts/buildversion.sh @@ -4,7 +4,7 @@ OUTFILE="$1" VAR16MODE="$2" # Extract version info -if [ -d .git ]; then +if [ -d .git -o -f .git ]; then VERSION="`git describe --tags --long --dirty`" elif [ -f .version ]; then VERSION="`cat .version`" |