[yelp-tools] yelp.m4: Add no-lc-dist option
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] yelp.m4: Add no-lc-dist option
- Date: Mon, 25 Nov 2013 15:35:53 +0000 (UTC)
commit 0929f449089044bbc05af54668f1c4c254b9a15c
Author: Christian Persch <chpe gnome org>
Date: Sun Nov 24 23:20:53 2013 +0100
yelp.m4: Add no-lc-dist option
Add no-lc-dist option to disable disting the generated lc files. Disabled by
default for backwards compatibility.
https://bugzilla.gnome.org/show_bug.cgi?id=672919
tools/yelp.m4 | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tools/yelp.m4 b/tools/yelp.m4
index af56c45..cfb07e1 100644
--- a/tools/yelp.m4
+++ b/tools/yelp.m4
@@ -6,15 +6,19 @@ m4_pattern_allow([AM_V_GEN])
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
YELP_LC_MEDIA_LINKS=true
+YELP_LC_DIST=true
for yelpopt in [$1]; do
case $yelpopt in
lc-media-links) YELP_LC_MEDIA_LINKS=true ;;
no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
+ lc-dist) YELP_LC_DIST=true ;;
+ no-lc-dist) YELP_LC_DIST= ;;
*) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;;
esac
done;
AC_SUBST([YELP_LC_MEDIA_LINKS])
+AC_SUBST([YELP_LC_DIST])
AC_ARG_WITH([help-dir],
AC_HELP_STRING([--with-help-dir=DIR],
@@ -110,13 +114,13 @@ clean-help:
EXTRA_DIST ?=
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
-EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
+EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp))
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
distdir: distdir-help-files
distdir-help-files:
- @for lc in C $(HELP_LINGUAS); do \
+ @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \
$(MKDIR_P) "$(distdir)/$$lc"; \
for file in $(HELP_FILES); do \
if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]