From 355a2e6906aa0e91d701fd01e29ea7caaed93c99 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 6 Apr 2015 17:57:59 +0200 Subject: [PATCH] doc: the man page for "wmsetbg" is now processed by a script Because the tool's help page changes whether Xinerama support was compiled or not, its man page have to reflect this, so instead of being simply copied the file is processed with the 'replace-ac-keywords' script. Signed-off-by: Christophe CURIS --- doc/Makefile.am | 15 ++++++++++----- doc/{wmsetbg.1x => wmsetbg.in} | 6 +++--- 2 files changed, 13 insertions(+), 8 deletions(-) rename doc/{wmsetbg.1x => wmsetbg.in} (97%) diff --git a/doc/Makefile.am b/doc/Makefile.am index 904e3d84..fff203fa 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -17,17 +17,17 @@ dist_man_MANS = \ wmagnify.1x \ wmgenmenu.1 \ wmmenugen.1 \ - wmsetbg.1x \ WPrefs.1x \ wxcopy.1x \ wxpaste.1x man_MANS = \ - wmaker.1x + wmaker.1x \ + wmsetbg.1x -MOSTLYCLEANFILES = wmaker.1x +MOSTLYCLEANFILES = wmaker.1x wmsetbg.1x -EXTRA_DIST = wmaker.in +EXTRA_DIST = wmaker.in wmsetbg.in wmaker.1x: wmaker.in Makefile $(top_builddir)/config.h $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \ @@ -36,6 +36,11 @@ wmaker.1x: wmaker.in Makefile $(top_builddir)/config.h -D"pkgdatadir=$(pkgdatadir)" --replace "pkgdatadir" \ -o "wmaker.1x" "$(srcdir)/wmaker.in" +wmsetbg.1x: wmsetbg.in Makefile $(top_builddir)/config.h + $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \ + --header "$(top_builddir)/config.h" --filter "USE_XINERAMA" \ + -o "wmsetbg.1x" "$(srcdir)/wmsetbg.in" + # Create a 'silent rule' for our make check the same way automake does AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V)) am__v_CHKOPTS_ = $(am__v_CHKOPTS_$(AM_DEFAULT_VERBOSITY)) @@ -87,7 +92,7 @@ wmgenmenu-args: wmsetbg-args: $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \ - --program "$(top_builddir)/util/wmsetbg" --man-page "$(top_srcdir)/doc/wmsetbg.1x" + --program "$(top_builddir)/util/wmsetbg" --man-page "wmsetbg.1x" wxcopy-args: $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \ diff --git a/doc/wmsetbg.1x b/doc/wmsetbg.in similarity index 97% rename from doc/wmsetbg.1x rename to doc/wmsetbg.in index 2125ad02..0139fec8 100644 --- a/doc/wmsetbg.1x +++ b/doc/wmsetbg.in @@ -75,9 +75,9 @@ print the version of Window Maker from which the program comes .TP .BR \-\-workspace | \-w " \fIworkspace\fP" update background only for the specified \fIworkspace\fP -.TP -.BR \-\-xinerama | \-X -stretch image across Xinerama heads +@USE_XINERAMA@.TP +@USE_XINERAMA@.BR \-\-xinerama | \-X +@USE_XINERAMA@stretch image across Xinerama heads .SH "INDEXED COLOR SCREENS" If your screen is not in a \fBTrue Color\fP configuration (generally sold as 16,777,216 colors) but in a indexed color mode (256 colors, 16 colors, ... which are based on a \fBColorMap\fP) then Window