<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12-08-01 05:27 AM, Aaron.Chen 陈俊杰
wrote:<br>
</div>
<blockquote
cite="mid:4CE6A5494DEECD498EBCD4C5488B1AFCD048FB@CNDC08.cn.smi.ad"
type="cite">
<pre wrap="">Hi,
>From 0766145c2e2134325b45072e8e52b9bef7ff463b Mon Sep 17 00:00:00 2001
From: Aaron Chen <a class="moz-txt-link-rfc2396E" href="mailto:aaron.chen@siliconmotion.com"><aaron.chen@siliconmotion.com></a>
Date: Wed, 1 Aug 2012 16:26:24 +0800
Subject: [PATCH 1/4] new driver initial patch 1
modified man folder, which is suitable for the new driver.
Signed-off-by: Aaron.Chen <a class="moz-txt-link-rfc2396E" href="mailto:aaron.chen@siliconmotion.com"><aaron.chen@siliconmotion.com></a>
---
man/Makefile.am | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/man/Makefile.am b/man/Makefile.am
index e1182ee..c6c85ab 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -31,10 +31,25 @@ EXTRA_DIST = @DRIVER_NAME@.man
CLEANFILES = $(driverman_DATA)
-# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
-
+SED = sed
+
+# Strings to replace in man pages
+XORGRELSTRING = @PACKAGE_STRING@
+ XORGMANNAME = X Version 11
+
+MAN_SUBSTS = \
+ -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
+ -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
+ -e 's|__xservername__|Xorg|g' \
+ -e 's|__xconfigfile__|xorg.conf|g' \
+ -e 's|__projectroot__|$(prefix)|g' \
+ -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
+ -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
+ -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
+ -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
+ -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
.man.$(DRIVER_MAN_SUFFIX):
- $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
+ sed $(MAN_SUBSTS) < $< > $@
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
Nak. You are throwing out 2 years of maintenance. The existing (more
up-to-date) makefile should work. You can type "make install" in the
man directory and test the resultant man page even if the rest of
the driver does not build. That's the reason for the man page being
in a separate directory, so it does not get accidentally broken by
changes for other parts of the driver.<br>
<br>
Be careful when doing a wholesale replacement. You can be throwing
out lots of valid code changes. The fact that it may appear to be
working in the short does not justify the method. There is no way
around it, you need to do a code merge.
<a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Merge_%28revision_control%29">http://en.wikipedia.org/wiki/Merge_%28revision_control%29</a>.<br>
<br>
<br>
<blockquote
cite="mid:4CE6A5494DEECD498EBCD4C5488B1AFCD048FB@CNDC08.cn.smi.ad"
type="cite">
<pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development
Archives: <a class="moz-txt-link-freetext" href="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</a>
Info: <a class="moz-txt-link-freetext" href="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>