Skip to content

Commit 19e3706

Browse files
committed
Xdmx.man: Show actual configured XKB defaults instead of old hardcoded values
Passed through from configure.ac via manpages.am Signed-off-by: Alan Coopersmith <[email protected]> Reviewed-by: Matthieu Herrb <[email protected]> Reviewed-by: Gaetan Nadon <[email protected]> Reviewed-by: Daniel Stone <[email protected]>
1 parent acf2173 commit 19e3706

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

configure.ac

+5
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,11 @@ AC_DEFINE_UNQUOTED(XKB_DFLT_MODEL, ["$XKB_DFLT_MODEL"], [Default XKB model])
12031203
AC_DEFINE_UNQUOTED(XKB_DFLT_LAYOUT, ["$XKB_DFLT_LAYOUT"], [Default XKB layout])
12041204
AC_DEFINE_UNQUOTED(XKB_DFLT_VARIANT, ["$XKB_DFLT_VARIANT"], [Default XKB variant])
12051205
AC_DEFINE_UNQUOTED(XKB_DFLT_OPTIONS, ["$XKB_DFLT_OPTIONS"], [Default XKB options])
1206+
AC_SUBST([XKB_DFLT_RULES])
1207+
AC_SUBST([XKB_DFLT_MODEL])
1208+
AC_SUBST([XKB_DFLT_LAYOUT])
1209+
AC_SUBST([XKB_DFLT_VARIANT])
1210+
AC_SUBST([XKB_DFLT_OPTIONS])
12061211

12071212
XKB_LIB='$(top_builddir)/xkb/libxkb.la'
12081213
XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'

hw/dmx/man/Xdmx.man

+8-8
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ the "xfree86" keycodes and the "pc104" symbols should be used to
140140
initialize the keyboard. For an SGI keyboard, ",xkb,sgi/indy(pc102)"
141141
might be useful. A list of keycodes, symbols, and geometries can be
142142
found in
143-
.IR /usr/X11R6/lib/X11/xkb .
143+
.IR __xkbdir__ .
144144
If this option is not specified, the input device will be queried,
145145
perhaps using the XKEYBOARD extension.
146146
.RE
@@ -352,31 +352,31 @@ This option specifies parameters on the command line. Currently, only
352352
parameters dealing with XKEYBOARD configuration are supported. These
353353
parameters apply only to the core keyboard. Parameter values are
354354
installation-dependent. Please see
355-
.I /usr/X11R6/lib/X11/xkb
355+
.I __xkbdir__
356356
or a similar directory for complete information.
357357
.RS
358358
.TP 8
359359
.B XkbRules
360-
Defaults to "xfree86". Other values may include "sgi" and "sun".
360+
Defaults to "__XKB_DFLT_RULES__". Other values may include "sgi" and "sun".
361361
.sp
362362
.TP 8
363363
.B XkbModel
364-
Defaults to "pc101". When used with "xfree86" rules, other values may
365-
include "pc102", "pc104", "pc105", "microsoft", and many others. When
364+
Defaults to "__XKB_DFLT_MODEL__". When used with "xfree86" rules, other values
365+
may include "pc102", "pc104", "microsoft", and many others. When
366366
used with "sun" rules, other values may include "type4" and "type5".
367367
.sp
368368
.TP 8
369369
.B XkbLayout
370-
Defaults to "us". Other country codes and "dvorak" are usually
370+
Defaults to "__XKB_DFLT_LAYOUT__". Other country codes and "dvorak" are usually
371371
available.
372372
.sp
373373
.TP 8
374374
.B XkbVariant
375-
Defaults to "".
375+
Defaults to "__XKB_DFLT_VARIANT__".
376376
.sp
377377
.TP 8
378378
.B XkbOptions
379-
Defaults to "".
379+
Defaults to "__XKB_DFLT_OPTIONS__".
380380
.RE
381381
.SH "CONFIGURATION FILE GRAMMAR"
382382
The following words and tokens are reserved:

manpages.am

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ MAN_SUBSTS += -e 's|__logdir__|$(logdir)|g' \
2424
-e 's|__sysconfdir__|$(sysconfdir)|g' \
2525
-e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \
2626
-e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \
27+
-e 's|__XKB_DFLT_RULES__|$(XKB_DFLT_RULES)|g' \
28+
-e 's|__XKB_DFLT_MODEL__|$(XKB_DFLT_MODEL)|g' \
29+
-e 's|__XKB_DFLT_LAYOUT__|$(XKB_DFLT_LAYOUT)|g' \
30+
-e 's|__XKB_DFLT_VARIANT__|$(XKB_DFLT_VARIANT)|g' \
31+
-e 's|__XKB_DFLT_OPTIONS__|$(XKB_DFLT_OPTIONS)|g' \
2732
-e 's|__bundle_id_prefix__|$(BUNDLE_ID_PREFIX)|g' \
2833
-e 's|__modulepath__|$(DEFAULT_MODULE_PATH)|g' \
2934
-e 's|__default_font_path__|$(COMPILEDDEFAULTFONTPATH)|g' \

0 commit comments

Comments
 (0)