summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2013-11-24 23:12:30 +0100
committerShaun McCance <shaunm@gnome.org>2013-11-25 09:11:59 -0500
commit4c6c5bab66c7fe0ad419ff573cd65b6bb0ec8002 (patch)
tree1394ad7c9d1d19e8b8135276ad4080e1dd8e4c88 /tools
parentba22301c3cc8e5d5e34a7c29a81838fab0de3467 (diff)
downloadyelp-tools-4c6c5bab66c7fe0ad419ff573cd65b6bb0ec8002.tar.gz
yelp.m4: Prepare for multiple options case
Bug #672919.
Diffstat (limited to 'tools')
-rw-r--r--tools/yelp.m418
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; \