1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-09 15:24:12 +01:00

wmaker: create script to handle conditional and variables replacement in man pages

Because the man page references some stuff that are dependant on the
configure options, it is a good idea to update the man page accordingly, so
the user will not be puzzled later.

There is now a script which takes care of replacing '@var@' in the same way
autoconf does, but also which can handle conditional '@def@' removal (for
the case of feature dependant command line options).

The man page for Window Maker is now processed this way so user will always
see accurate information.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-04-06 17:57:55 +02:00
committed by Carlos R. Mafra
parent 6749e38693
commit d3414d335f
4 changed files with 191 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
SUBDIRS = build sk cs ru
man_MANS = \
dist_man_MANS = \
geticonset.1x \
getstyle.1x \
get-wings-flags.1 \
@@ -15,7 +15,6 @@ man_MANS = \
wdwrite.1x \
WindowMaker.1x \
wmagnify.1x \
wmaker.1x \
wmgenmenu.1 \
wmmenugen.1 \
wmsetbg.1x \
@@ -23,7 +22,19 @@ man_MANS = \
wxcopy.1x \
wxpaste.1x
EXTRA_DIST = $(man_MANS)
man_MANS = \
wmaker.1x
MOSTLYCLEANFILES = wmaker.1x
EXTRA_DIST = wmaker.in
wmaker.1x: wmaker.in Makefile $(top_builddir)/config.h
$(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \
--header "$(top_builddir)/config.h" --filter "HAVE_INOTIFY" \
-D"sysconfdir=$(sysconfdir)" --replace "sysconfdir" \
-D"pkgdatadir=$(pkgdatadir)" --replace "pkgdatadir" \
-o "wmaker.1x" "$(srcdir)/wmaker.in"
# Create a 'silent rule' for our make check the same way automake does
AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V))
@@ -35,6 +46,6 @@ check-local: wmaker-args
wmaker-args:
$(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
--program "$(top_builddir)/src/wmaker" --man-page "$(top_srcdir)/doc/wmaker.1x"
--program "$(top_builddir)/src/wmaker" --man-page "wmaker.1x"
.PHONY: wmaker-args

View File

@@ -48,6 +48,9 @@ do not show the application Dock
.TP
.B \-\-no\-drawer
disable the Drawers in the Dock
@!HAVE_INOTIFY@.TP
@!HAVE_INOTIFY@.B \-\-no\-polling
@!HAVE_INOTIFY@disable the periodic check on the configuration file to reload it automatically
.TP
.B \-\-static
do not update or save automatically the configuration
@@ -79,7 +82,7 @@ Attribute Editor (right drag the application's title bar, select
Attributes) instead of modifying this file directly. There are just a
few options not available using the Attributes Editor.
.TP
.B /usr/share/WindowMaker/Defaults/
.B @sysconfdir@/WindowMaker/Defaults/
All the above-mentioned files are READ from here if not found except
for WMState, which is COPIED from here. No matter where they are read
from, if it's necessary to write configuration changes back into this
@@ -118,13 +121,13 @@ to keep things nicely ordered)
.B ~/GNUstep/Library/WindowMaker/Themes/
Window Maker looks for theme files here (ibid)
.TP
.B /usr/share/WindowMaker/Pixmaps/
.B @pkgdatadir@/Pixmaps/
System-wide (Window Maker-specific) pixmaps are located here
.TP
.B /usr/share/WindowMaker/Styles/
.B @pkgdatadir@/Styles/
System wide styles are here
.TP
.B /usr/share/WindowMaker/Themes/
.B @pkgdatadir@/Themes/
Guess... ;-)
.SH ENVIRONMENT
.IP GNUSTEP_USER_ROOT