[gnome-internet-radio-locator] Add optional help
- From: Ole Aamot <ole src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-internet-radio-locator] Add optional help
- Date: Fri, 23 Feb 2018 20:46:33 +0000 (UTC)
commit 755ef1818b9066f3062124327c8b295f745eb130
Author: Ole Aamot <oka oka no>
Date: Fri Feb 23 21:46:00 2018 +0100
Add optional help
configure.ac | 38 +++++++++++++++++++++++---------------
help/Makefile.am | 36 ++++++++++++++++++------------------
2 files changed, 41 insertions(+), 33 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c7d9f95..2284df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,28 @@ PKG_PROG_PKG_CONFIG
# Checks for libraries.
+help_msg="no (not requested)"
+try_help=:
+gnome_internet_radio_locator_help=false
+
+AC_ARG_WITH([help],AS_HELP_STRING([--with-help],[Support GNOME Internet Radio Locator Help]), [
+ AC_MSG_CHECKING([for help])
+ if test x$withval = xno; then
+ try_help=false
+ help_msg = "no (not requested)"
+ AC_DEFINE([ENABLE_USER_HELP],0,[help missing])
+ gnome_internet_radio_locator_help=false
+ else
+ AC_DEFINE([ENABLE_USER_HELP],1,[support help])
+ help_msg="yes (with help support)"
+ gnome_internet_radio_locator_help=true
+ fi
+ AC_MSG_RESULT([$help_msg])
+])
+
+AM_CONDITIONAL([ENABLE_USER_HELP], [$gnome_internet_radio_locator_help])
+AC_SUBST([ENABLE_USER_HELP])
+
record_msg="no (not requested)"
try_record=:
gnome_internet_radio_locator_record=false
@@ -81,21 +103,7 @@ GNOME_INTERNET_RADIO_LOCATOR_PKG_DEPS="champlain-gtk-0.12 geocode-glib-1.0 glib-
GTK_DOC_CHECK([1.16], [--flavour no-tmpl])
-#YELP_HELP_INIT
-
-#GNOMEDOC=`which yelp-build`
-#if test -z $GNOMEDOC; then
-# echo "*** The tools to build the documentation are not found,"
-# echo " please intall the yelp-tool package ***"
-# exit 1
-#fi
-
-#AC_ARG_ENABLE([user_help],
-# AS_HELP_STRING([--disable-user-help],[Disable the user help to speed the build (default: enabled)]),
-# [enable_user_help=$enableval],
-# [enable_user_help=yes])
-
-#AM_CONDITIONAL(ENABLE_USER_HELP, test x"$enable_user_help" = "xyes")
+YELP_HELP_INIT
# Checks for header files.
AC_HEADER_STDC
diff --git a/help/Makefile.am b/help/Makefile.am
index 07d768e..bf09d4b 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -1,27 +1,27 @@
-#if ENABLE_USER_HELP
+if ENABLE_USER_HELP
-#@YELP_HELP_RULES@
+@YELP_HELP_RULES@
-#HELP_ID = gnome-internet-radio-locator
+HELP_ID = gnome-internet-radio-locator
-#HELP_MEDIA = \
-# media/gnome-internet-radio-locator-exit.png \
-# media/gnome-internet-radio-locator-new.png \
-# media/gnome-internet-radio-locator-search.png \
-# media/gnome-internet-radio-locator-stop.png \
-# media/gnome-internet-radio-locator-zoom.png
+HELP_MEDIA = \
+ media/gnome-internet-radio-locator-exit.png \
+ media/gnome-internet-radio-locator-new.png \
+ media/gnome-internet-radio-locator-search.png \
+ media/gnome-internet-radio-locator-stop.png \
+ media/gnome-internet-radio-locator-zoom.png
-#HELP_FILES = \
-# index.page \
-# intro.page \
-# new.page \
-# stop.page \
-# zoom.page \
-# search.page \
-# exit.page
+HELP_FILES = \
+ index.page \
+ intro.page \
+ new.page \
+ stop.page \
+ zoom.page \
+ search.page \
+ exit.page
HELP_LINGUAS = cs de
-#endif
+endif
-include $(top_srcdir)/git.mk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]