mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-28 00:23:33 +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:
committed by
Carlos R. Mafra
parent
6749e38693
commit
d3414d335f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user