summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-02-22 21:36:13 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2020-03-06 12:31:33 +0100
commit6ec05ef6fef789f5646b773495285e845e155d77 (patch)
tree0ecef7c4fb62eacd26bb6f258da5cde0ce8dd372 /solenv/gbuild
parent1391b1b3eb3d28c7a606a3f0357eef6ca71267e7 (diff)
tdf#130911: convert some token generation scripts from Perl to Python.
Change-Id: Id655b6a0cee7bdfe4804941f20fe358af8f3185e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89477 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'solenv/gbuild')
-rw-r--r--solenv/gbuild/CustomTarget.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/gbuild/CustomTarget.mk b/solenv/gbuild/CustomTarget.mk
index 27ce89fba06f..ed1a9addc103 100644
--- a/solenv/gbuild/CustomTarget.mk
+++ b/solenv/gbuild/CustomTarget.mk
@@ -100,8 +100,9 @@ $(if $(7),$(call gb_CustomTarget_get_workdir,$(1))/$(7)names.inc) : \
touch $$@
$(call gb_CustomTarget_get_workdir,$(1))/$(2)/token/$(4).hxx : \
+ $(call gb_ExternalExecutable_get_dependencies,python) \
$(if $(7),$(SRCDIR)/$(3)/$(7).txt) \
- $(if $(8),$(SRCDIR)/$(3)/$(8),$(SRCDIR)/solenv/bin/generate-tokens.pl) \
+ $(if $(8),$(SRCDIR)/$(3)/$(8),$(SRCDIR)/solenv/bin/generate-tokens.py) \
$(SRCDIR)/$(3)/$(4).txt \
$(SRCDIR)/$(3)/$(4).hxx.head \
$(SRCDIR)/$(3)/$(4).hxx.tail
@@ -110,7 +111,7 @@ $(call gb_CustomTarget_get_workdir,$(1))/$(2)/token/$(4).hxx : \
mkdir -p $(call gb_CustomTarget_get_workdir,$(1))/misc \
$(call gb_CustomTarget_get_workdir,$(1)) \
$(call gb_CustomTarget_get_workdir,$(1))/$(2)/token
- perl $(if $(8),$(SRCDIR)/$(3)/$(8),$(SRCDIR)/solenv/bin/generate-tokens.pl) \
+ $(call gb_ExternalExecutable_get_command,python) $(if $(8),$(SRCDIR)/$(3)/$(8),$(SRCDIR)/solenv/bin/generate-tokens.py) \
$(SRCDIR)/$(3)/$(4).txt \
$(call gb_CustomTarget_get_workdir,$(1))/misc/$(5)ids.inc \
$(call gb_CustomTarget_get_workdir,$(1))/$(5)names.inc \