diff options
author | Eric Engestrom <[email protected]> | 2017-06-27 12:08:41 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-06-29 16:24:58 +0100 |
commit | 3fd425aed764fb771f2f49ddb6b30b389a114504 (patch) | |
tree | 8c9b64b199048e823505d8418d170936e70ad49c /src/mesa/Android.libmesa_git_sha1.mk | |
parent | ccfac28835ac67b81182bc5860f1af92fd2d2447 (diff) |
build systems: uniformize git_sha1.h generation
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/Android.libmesa_git_sha1.mk')
-rw-r--r-- | src/mesa/Android.libmesa_git_sha1.mk | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/Android.libmesa_git_sha1.mk b/src/mesa/Android.libmesa_git_sha1.mk index 0fd176bf7d5..a5a1ebb37f5 100644 --- a/src/mesa/Android.libmesa_git_sha1.mk +++ b/src/mesa/Android.libmesa_git_sha1.mk @@ -46,12 +46,7 @@ LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, git_sha1.h) $(intermediates)/git_sha1.h: $(wildcard $(MESA_TOP)/.git/logs/HEAD) @mkdir -p $(dir $@) @echo "GIT-SHA1: $(PRIVATE_MODULE) <= git" - $(hide) touch $@ - $(hide) if which git > /dev/null; then \ - git --git-dir $(MESA_TOP)/.git log -n 1 --oneline | \ - sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \ - > $@; \ - fi + $(hide) sh $(MESA_TOP)/git_sha1_gen.sh > $@ LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates) |