[Libreoffice-commits] online.git: loleaflet/Makefile.am
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Mar 5 19:41:27 UTC 2019
loleaflet/Makefile.am | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 88a8810ee79215f706c3394bf92072a9dea2c068
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Fri Feb 1 10:59:29 2019 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Mar 5 15:40:59 2019 -0400
loleaflet: minify l10n files
Change-Id: I811d945e6767a0716244f8b1f42a8e1f2b727775
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index a1b860762..7f90ca147 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -336,9 +336,13 @@ $(builddir)/dist/images/%.png: $(JQUERY_MINIFIED_IMAGE_PATH)/%.png
@mkdir -p $(dir $@)
@cp $< $@
-$(builddir)/dist/l10n/%: $(srcdir)/l10n/%
+$(builddir)/dist/l10n/%.json: $(srcdir)/l10n/%.json
@mkdir -p $(dir $@)
+if ENABLE_DEBUG
@cp $< $@
+else
+ @tr -d '[:space:]' <$< >$@
+endif
$(builddir)/dist/l10n/%.json: $(srcdir)/po/%.po
@$(srcdir)/util/po2json.py $< -o $@
More information about the Libreoffice-commits
mailing list