[yelp-tools] yelp.m4: Prepare for multiple options case
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] yelp.m4: Prepare for multiple options case
- Date: Mon, 25 Nov 2013 15:35:48 +0000 (UTC)
commit 4c6c5bab66c7fe0ad419ff573cd65b6bb0ec8002
Author: Christian Persch <chpe gnome org>
Date: Sun Nov 24 23:12:30 2013 +0100
yelp.m4: Prepare for multiple options case
Bug #672919.
tools/yelp.m4 | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/tools/yelp.m4 b/tools/yelp.m4
index d1a90fc..af56c45 100644
--- a/tools/yelp.m4
+++ b/tools/yelp.m4
@@ -5,16 +5,16 @@ m4_pattern_allow([AM_V_at])
m4_pattern_allow([AM_V_GEN])
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
-YELP_NO_LC_MEDIA_LINKS="";
+YELP_LC_MEDIA_LINKS=true
+
for yelpopt in [$1]; do
- if test "x$yelpopt" = "xno-lc-media-links"; then
- YELP_NO_LC_MEDIA_LINKS="no-lc-media-links";
- else
- echo "Unrecognized [YELP_HELP_INIT] option $yelpopt" 1>&2;
- exit 1;
- fi;
+ case $yelpopt in
+ lc-media-links) YELP_LC_MEDIA_LINKS=true ;;
+ no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
+ *) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;;
+ esac
done;
-AC_SUBST(YELP_NO_LC_MEDIA_LINKS)
+AC_SUBST([YELP_LC_MEDIA_LINKS])
AC_ARG_WITH([help-dir],
AC_HELP_STRING([--with-help-dir=DIR],
@@ -174,7 +174,7 @@ install-help:
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
elif test "x$$lc" != "xC"; then \
- if test "x$(YELP_NO_LC_MEDIA_LINKS)" != "xno-lc-media-links"; then \
+ if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \
echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
$(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
fi; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]