diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2015-05-07 08:38:06 -0400 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-05-08 13:16:56 +0300 |
commit | 8993c3b1ea68ef0aab3b8adef6677decdeca014f (patch) | |
tree | 569b4c4d43ee975e948607e92ea263c716841928 /scripts | |
parent | 4fab3037c9432a92474ea635148e42ce385719d1 (diff) |
linux-generic/odp_impl: add implementation version details
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git_hash.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh new file mode 100755 index 0000000..c9f1faf --- /dev/null +++ b/scripts/git_hash.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +repo=https://git.linaro.org/lng/odp.git +hash=$(git describe | tr -d "\n") +if git diff-index --name-only HEAD &>/dev/null ; then + dirty=-dirty +fi + +echo -n "'${repo}' (${hash}${dirty})" |