9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 03083156b8ed304d5bce3d074ea4cfc7b4cb5387
parent 06abcce2337cc853a09635fa70ff3583b5dc80ef
Author: Ambroise Vincent <ambroise.vincent@arm.com>
Date:   Thu, 18 Apr 2019 11:31:47 +0100

Use low level git command in mkver

It gets rid of git color formatting.

Change-Id: I60172268c360125f43a95d01a95dd192c517d75f
Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>

Diffstat:
Mtarget/native/mkver | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/target/native/mkver b/target/native/mkver @@ -3,8 +3,7 @@ set -e trap 'r=$?;rm -f $$.tmp;exit $r' EXIT HUP INT QUIT TERM -git log -n1 | -awk '/commit/ { - printf("#define RCODEVERSION \"%s\"\n", - substr($2, 1, 8)) +git show-ref HEAD | +awk '{printf("#define RCODEVERSION \"%s\"\n", + substr($1, 1, 8)) }' > $$.tmp && mv $$.tmp version.h