mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-24 01:25:01 +00:00
Convert sis.man from XORG_RAWCPP to using sed like other drivers
Upgrade to util-macros 1.8 for additional man page support Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS The existing statement can now be removed from the configuration file. Use automake provided $(AM_V_GEN) and XORG_DEFAULT_OPTIONS provided $(SED) Enables silent rule and use platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
@@ -31,39 +31,9 @@ EXTRA_DIST = @DRIVER_NAME@.man
|
||||
|
||||
CLEANFILES = $(driverman_DATA)
|
||||
|
||||
SED = sed
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
|
||||
MANDEFS = \
|
||||
-D__vendorversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" \
|
||||
-D__appmansuffix__=$(APP_MAN_SUFFIX) \
|
||||
-D__filemansuffix__=$(FILE_MAN_SUFFIX) \
|
||||
-D__libmansuffix__=$(LIB_MAN_SUFFIX) \
|
||||
-D__miscmansuffix__=$(MISC_MAN_SUFFIX) \
|
||||
-D__drivermansuffix__=$(DRIVER_MAN_SUFFIX) \
|
||||
-D__adminmansuffix__=$(ADMIN_MAN_SUFFIX) \
|
||||
-D__xconfigfile__=xorg.conf \
|
||||
-D__xservername__=Xorg
|
||||
|
||||
# Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM
|
||||
# to cpp, because that trick does not work on all ANSI C preprocessors.
|
||||
# Delete line numbers from the cpp output (-P is not portable, I guess).
|
||||
# Allow XCOMM to be preceded by whitespace and provide a means of generating
|
||||
# output lines with trailing backslashes.
|
||||
# Allow XHASH to always be substituted, even in cases where XCOMM isn't.
|
||||
|
||||
CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \
|
||||
-e '/^\#line *[0-9][0-9]* *.*$$/d' \
|
||||
-e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \
|
||||
-e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \
|
||||
-e '/^[ ]*XHASH/s/XHASH/\#/' \
|
||||
-e '/\@\@$$/s/\@\@$$/\\/'
|
||||
|
||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
.man.$(DRIVER_MAN_SUFFIX):
|
||||
$(RAWCPP) $(RAWCPPFLAGS) $(MANDEFS) $(EXTRAMANDEFS) < $< | $(CPP_SED_MAGIC) > $@
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||
|
||||
|
||||
18
man/sis.man
18
man/sis.man
@@ -1,15 +1,5 @@
|
||||
.\" shorthand for double quote that works everywhere.
|
||||
.ds q \N'34'
|
||||
#ifdef __xservername__
|
||||
#define __myservername__ __xservername__
|
||||
#else
|
||||
#define __myservername__ XFree86
|
||||
#endif
|
||||
#ifdef __xconfigfile__
|
||||
#define __myxconfigfile__ __xconfigfile__
|
||||
#else
|
||||
#define __myxconfigfile__ XF86Config
|
||||
#endif
|
||||
.TH SIS __drivermansuffix__ __vendorversion__
|
||||
.SH NAME
|
||||
sis \- SiS and XGI video driver
|
||||
@@ -23,7 +13,7 @@ sis \- SiS and XGI video driver
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.B sis
|
||||
is an __myservername__ driver for SiS (Silicon Integrated Systems) and XGI video
|
||||
is an __xservername__ driver for SiS (Silicon Integrated Systems) and XGI video
|
||||
chips. The driver is accelerated and provides support for colordepths of 8, 16
|
||||
and 24 bpp. XVideo, Render and other extensions are supported as well.
|
||||
.SH SUPPORTED HARDWARE
|
||||
@@ -58,7 +48,7 @@ for SiS315, 55x, 330, 661/741/76x (plus M, FX, MX, GX variants thereof), 340
|
||||
and all XGI chips.
|
||||
.PP
|
||||
.SH CONFIGURATION DETAILS
|
||||
Please refer to __myxconfigfile__(__filemansuffix__) for general configuration
|
||||
Please refer to __xconfigfile__(__filemansuffix__) for general configuration
|
||||
details. This section only covers configuration details specific to this
|
||||
driver.
|
||||
.PP
|
||||
@@ -426,11 +416,7 @@ The amount is to be specified in megabyte, the default is 8.
|
||||
.SH "KNOWN BUGS"
|
||||
none.
|
||||
.SH "SEE ALSO"
|
||||
#ifdef __xservername__
|
||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
|
||||
#else
|
||||
XFree86(1), XF86Config(__filemansuffix__), xf86config(1), Xserver(1), X(__miscmansuffix__)
|
||||
#endif
|
||||
.PP
|
||||
.B "http://www.winischhofer.eu/linuxsisvga.shtml"
|
||||
for more information and updates
|
||||
|
||||
Reference in New Issue
Block a user