Skip to content

Commit f7bac1a

Browse files
committed
Enable installation without --enable-man
Add a pre-generated man page and do not regenerate the man page by default. Check the prerequisites to regenerate the man page during configuration instead of reporting an error later during the build process, and remove the pre-generated man page after checking, so that --enable-man will regenerate the man page no matter what.
1 parent e05c7e5 commit f7bac1a

File tree

4 files changed

+76
-12
lines changed

4 files changed

+76
-12
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ m4/
1010
missing
1111
po/.intltool-merge-cache
1212
config.*
13-
man/*.1
1413
po/LINGUAS
1514
po/POTFILES
1615
po/*.gmo

configure.ac

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ AC_PROG_CC_STDC
3030

3131

3232
AC_ARG_ENABLE(man,
33-
AS_HELP_STRING([--enable-man],[regenerate roff man pages from Docbook @<:@default=yes@:>@]),
33+
AS_HELP_STRING([--enable-man],[regenerate roff man pages from Docbook @<:@default=no@:>@]),
3434
[case "${enableval}" in
3535
yes) enable_man=yes ;;
3636
no) enable_man=no ;;
37-
*) AC_MSG_ERROR([bad value "${enableval}" for --enable-man, use "yes" (default) or "no".]) ;;
37+
*) AC_MSG_ERROR([bad value "${enableval}" for --enable-man, use "no" (default) or "yes".]) ;;
3838
esac],[])
3939

4040
AC_ARG_ENABLE(more_warnings,
@@ -147,14 +147,16 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
147147
if test x"$enable_man" = x"yes"; then
148148
AC_PATH_PROG([XSLTPROC], [xsltproc])
149149
if test -z "$XSLTPROC"; then
150-
enable_man=no
150+
AC_MSG_ERROR([xsltproc is required to regenerate the pre-built man page; consider --disable-man])
151151
fi
152152

153153
dnl check for DocBook DTD and stylesheets in the local catalog.
154154
JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
155-
[DocBook XML DTD V4.1.2], [], enable_man=no)
155+
[DocBook XML DTD V4.1.2], [], AC_MSG_ERROR([DocBook XML DTD is required to regenerate the pre-built man page; consider --disable-man]))
156156
JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
157-
[DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no)
157+
[DocBook XSL Stylesheets >= 1.70.1], [], AC_MSG_ERROR([DocBook XSL Stylesheets are required to regenerate the pre-built man page; consider --disable-man]))
158+
159+
rm -f $srcdir/man/lxappearance.1
158160
fi
159161

160162
AM_CONDITIONAL(ENABLE_MAN, test "x$enable_man" != "xno")

man/Makefile.am

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,5 @@ lxappearance.1: lxappearance.xml
1515
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1616

1717
CLEANFILES = $(man_MANS)
18-
else
1918

20-
$(man_MANS):
21-
@echo ""
22-
@echo "Warning: you need to run configure with '--enable-man'"
23-
@echo " in order to regenerate man pages."
24-
@echo ""
2519
endif

man/lxappearance.1

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
'\" t
2+
.\" Title: LXAPPEARANCE
3+
.\" Author: Ying-Chun Liu
4+
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5+
.\" Date: April 20, 2008
6+
.\" Manual: http://LXDE.org
7+
.\" Source: http://LXDE.org
8+
.\" Language: English
9+
.\"
10+
.TH "LXAPPEARANCE" "1" "April 20, 2008" "http://LXDE\&.org" "http://LXDE.org"
11+
.\" -----------------------------------------------------------------
12+
.\" * Define some portability stuff
13+
.\" -----------------------------------------------------------------
14+
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
.\" http://bugs.debian.org/507673
16+
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17+
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
.ie \n(.g .ds Aq \(aq
19+
.el .ds Aq '
20+
.\" -----------------------------------------------------------------
21+
.\" * set default formatting
22+
.\" -----------------------------------------------------------------
23+
.\" disable hyphenation
24+
.nh
25+
.\" disable justification (adjust text to left margin only)
26+
.ad l
27+
.\" -----------------------------------------------------------------
28+
.\" * MAIN CONTENT STARTS HERE *
29+
.\" -----------------------------------------------------------------
30+
.SH "NAME"
31+
lxappearance \- GTK+ theme switcher
32+
.SH "SYNOPSIS"
33+
.HP \w'\fBlxappearance\fR\ 'u
34+
\fBlxappearance\fR
35+
.SH "DESCRIPTION"
36+
.PP
37+
This manual page documents briefly the
38+
\fBlxappearance\fR
39+
command\&.
40+
.PP
41+
\fBlxappearance\fR
42+
is a program to change GTK+ themes, icon themes, and fonts used by applications\&. It is a feature\-rich GTK+ theme switcher\&.
43+
.SH "AUTHOR"
44+
.PP
45+
This manual page was written by paulliu
46+
<grandpaul@gmail\&.com>
47+
for the
48+
Debian
49+
system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the
50+
GNU
51+
General Public License, Version 2 any later version published by the Free Software Foundation\&.
52+
.PP
53+
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&.
54+
.PP
55+
The source code of this manual page should be in
56+
\&.sgml
57+
format\&. It is better not to modify the
58+
\&.1
59+
file directly\&.
60+
.SH "AUTHOR"
61+
.PP
62+
\fBYing\-Chun Liu\fR
63+
.RS 4
64+
Author.
65+
.RE
66+
.SH "COPYRIGHT"
67+
.br
68+
Copyright \(co 2008 paulliu
69+
.br

0 commit comments

Comments
 (0)