diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-08-14 16:34:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-08-16 09:13:39 +0200 |
commit | 73023bcc0dba68f6677bc02cdad75145180e2b11 (patch) | |
tree | 66fa7eb6279cd0752e012e286c422b1162d96cea /CustomTarget_html.mk | |
parent | 0d068dc8d5cd64f89c8a8e3d0a6bef6ed9e1ee87 (diff) |
Limit the online help only to the built languages.
Change-Id: Ib81dbd9a4047d9bb63761a43ef0b183a450b03f1
Reviewed-on: https://gerrit.libreoffice.org/59047
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'CustomTarget_html.mk')
-rw-r--r-- | CustomTarget_html.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk index 58f7b7aaf2..ad383a0085 100644 --- a/CustomTarget_html.mk +++ b/CustomTarget_html.mk @@ -16,6 +16,7 @@ html_BMARK_MODULES := swriter:WRITER scalc:CALC simpress:IMPRESS sdraw:DRAW shar $(eval $(call gb_CustomTarget_register_targets,helpcontent2/help3xsl,\ hid2file.js \ + languages.js \ $(foreach lang,$(gb_HELP_LANGS),\ $(lang)/bookmarks.js \ $(lang)/contents.js \ @@ -46,6 +47,14 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/hid2file.js : \ ) > $@ \ ) +$(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/languages.js : \ + $(SRCDIR)/helpcontent2/CustomTarget_html.mk + ( \ + echo -n 'var languagesSet = new Set([' ; \ + for lang in $(gb_HELP_LANGS) ; do echo -n "'$$lang', " ; done | sed 's/, $$//' ; \ + echo ']);' \ + ) > $@ + define html_gen_contents_html_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.part : $(call gb_HelpTarget__get_treefile,$(1),$(3)) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.part : TREE_FILE := $(call gb_HelpTarget__get_treefile,$(1),$(3)) |