[Xfce4-commits] [apps/xfce4-screenshooter] 01/01: Automatically update manual pages if help2man is available
noreply at xfce.org
noreply at xfce.org
Tue Aug 28 02:31:29 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screenshooter.
commit 29efab3120eb6a56aaa4c8ae0fb93b8432074e10
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon Aug 27 21:30:30 2018 -0300
Automatically update manual pages if help2man is available
---
Makefile.am | 7 ++++++-
configure.ac.in | 10 ++++++++++
xfce4-screenshooter.1 | 16 ++--------------
3 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index b9b6f29..5120a2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -111,6 +111,12 @@ src_xfce4_screenshooter_LDADD = lib/libscreenshooter.la
src_xfce4_screenshooter_SOURCES = src/main.c
+# Manual file for the application
+if HAVE_HELP2MAN
+xfce4-screenshooter.1: src/xfce4-screenshooter
+ $(HELP2MAN) -o $@ --no-info $<
+endif
+
# Desktop file for the application
app_desktopdir = $(datadir)/applications
app_desktop_in_in_files = src/xfce4-screenshooter.desktop.in.in
@@ -233,4 +239,3 @@ DISTCLEANFILES = \
# Man pages
dist_man_MANS = xfce4-screenshooter.1
-
diff --git a/configure.ac.in b/configure.ac.in
index f673c51..1fc58c1 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -63,6 +63,16 @@ dnl *** Check for i18n support ***
dnl ******************************
XDT_I18N([@LINGUAS@])
+dnl **************************
+dnl *** Check for help2man ***
+dnl **************************
+AC_CHECK_PROGS([HELP2MAN], [help2man])
+if ! test -z "$HELP2MAN"; then
+AM_CONDITIONAL([HAVE_HELP2MAN], true)
+else
+AM_CONDITIONAL([HAVE_HELP2MAN], false)
+fi
+
dnl Check for debugging support
XDT_FEATURE_DEBUG()
diff --git a/xfce4-screenshooter.1 b/xfce4-screenshooter.1
index 71f0e9c..bb63f58 100644
--- a/xfce4-screenshooter.1
+++ b/xfce4-screenshooter.1
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
-.TH XFCE4-SCREENSHOOTER "1" "April 2018" "xfce4-screenshooter 1.9.1.gitifelse(, git, xfce4_screenshooter_version_tag()-xfce4_screenshooter_version_build(), xfce4_screenshooter_version_tag())" "User Commands"
+.TH XFCE4-SCREENSHOOTER "1" "August 2018" "xfce4-screenshooter 1.9.3git-d1d135c" "User Commands"
.SH NAME
-xfce4-screenshooter \- manual page for xfce4-screenshooter 1.9.1.gitifelse(, git, xfce4_screenshooter_version_tag()-xfce4_screenshooter_version_build(), xfce4_screenshooter_version_tag())
+xfce4-screenshooter \- manual page for xfce4-screenshooter 1.9.3git-d1d135c
.SH DESCRIPTION
.SS "Usage:"
.IP
@@ -50,15 +50,3 @@ Take a screenshot of the active window
.TP
\fB\-\-display\fR=\fI\,DISPLAY\/\fR
X display to use
-.SH "SEE ALSO"
-The full documentation for
-.B xfce4-screenshooter
-is maintained as a Texinfo manual. If the
-.B info
-and
-.B xfce4-screenshooter
-programs are properly installed at your site, the command
-.IP
-.B info xfce4-screenshooter
-.PP
-should give you access to the complete manual.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list