diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-03 20:55:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-05 09:56:48 +0000 |
commit | 8549d6e26f5116b1fcf5e066252cc987a3f2574f (patch) | |
tree | 618d5251271f982f1079572c8071da98b8b18c15 /extras | |
parent | 8ecc8ebf2b94615928449f431884525b605fbfa5 (diff) |
Related: tdf#150687 check autocorr DocumentList.xml at build time
to ensure no noopt entries exist
Change-Id: I9fb95e211d6030e1f551558fd5a0a3ca700c8fc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145030
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r-- | extras/CustomTarget_autocorr.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/CustomTarget_autocorr.mk b/extras/CustomTarget_autocorr.mk index b602e5bb13ea..f97c8f1d2d71 100644 --- a/extras/CustomTarget_autocorr.mk +++ b/extras/CustomTarget_autocorr.mk @@ -9,6 +9,8 @@ $(eval $(call gb_CustomTarget_CustomTarget,extras/source/autocorr)) +autocorr_PYTHONCOMMAND := $(call gb_ExternalExecutable_get_command,python) + extras_AUTOCORR_LANGS := \ af-ZA:af-ZA \ bg:bg-BG \ @@ -268,11 +270,13 @@ $(call gb_CustomTarget_get_workdir,extras/source/autocorr)/acor_%.dat : \ $$(addprefix \ $(call gb_CustomTarget_get_workdir,extras/source/autocorr)/$$(call extras_AUTOCORR_SHORTLANG,$$*)/,\ mimetype \ - $$(call extras_AUTOCORR_XMLFILES_LANG,$$(call extras_AUTOCORR_SHORTLANG,$$*))) + $$(call extras_AUTOCORR_XMLFILES_LANG,$$(call extras_AUTOCORR_SHORTLANG,$$*))) \ + | $(call gb_ExternalExecutable_get_dependencies,python) $(call gb_Output_announce,autocorr/acor_$*.dat,$(true),ZIP,2) $(call gb_Trace_StartRange,autocorr/acor_$*.dat,ZIP) $(call gb_Helper_abbreviate_dirs,\ cd $(dir $<) && \ + $(autocorr_PYTHONCOMMAND) $(SRCDIR)/bin/check-autocorr.py DocumentList.xml && \ zip -q0X --filesync --must-match $@ mimetype && \ zip -qrX --must-match $@ $(call extras_AUTOCORR_XMLFILES_LANG,$(call extras_AUTOCORR_SHORTLANG,$*)) \ ) |