[Mesa-dev] [PATCH] Convert git_sha1_gen script to Python.
Rob Herring
robh at kernel.org
Tue Aug 1 16:37:57 UTC 2017
On Tue, Aug 1, 2017 at 8:38 AM, Jose Fonseca <jfonseca at vmware.com> wrote:
> Python is the scripting language we've been using for scripts that need
> to run across all supported platforms.
>
> Shell is *not* a portable language for scripts.
> ---
[...]
> diff --git a/src/mesa/Android.libmesa_git_sha1.mk b/src/mesa/Android.libmesa_git_sha1.mk
> index 7d64b1c809..f66f88484b 100644
> --- a/src/mesa/Android.libmesa_git_sha1.mk
> +++ b/src/mesa/Android.libmesa_git_sha1.mk
> @@ -46,7 +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) sh $(MESA_TOP)/bin/git_sha1_gen.sh > $@
> + $(hide) python $(MESA_TOP)/bin/git_sha1_gen.py > $@
s/python/$(MESA_PYTHON2)/
Rob
More information about the mesa-dev
mailing list