Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/bin/xterm xterm: Try to make manpage subst...



details:   https://anonhg.NetBSD.org/src/rev/2b60532a6c92
branches:  trunk
changeset: 365901:2b60532a6c92
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon May 02 10:50:02 2022 +0000

description:
xterm: Try to make manpage substitutions more readable.

Use X11EXTRAMANTRANSFORMS to set most of them, so that the sed(1)
syntax noise doesn't drown out the keys/values.  Add comments.

Keep using X11EXTRAMANDEFS for __app_version__ - my make-fu is too
weak to figure out how to do that properly while keeping happy
multiple levels of quoting along the way.

Same output is generated.

diffstat:

 external/mit/xorg/bin/xterm/Makefile.inc |  41 +++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 14 deletions(-)

diffs (52 lines):

diff -r e45842a3935e -r 2b60532a6c92 external/mit/xorg/bin/xterm/Makefile.inc
--- a/external/mit/xorg/bin/xterm/Makefile.inc  Mon May 02 10:13:15 2022 +0000
+++ b/external/mit/xorg/bin/xterm/Makefile.inc  Mon May 02 10:50:02 2022 +0000
@@ -1,21 +1,34 @@
-#      $NetBSD: Makefile.inc,v 1.3 2022/05/01 23:24:34 uwe Exp $
+#      $NetBSD: Makefile.inc,v 1.4 2022/05/02 10:50:02 uwe Exp $
 
 VERSION_H=     ${X11SRCDIR.xterm}/version.h
 XTERM_DATE=    ${:!${TOOL_GREP} XTERM_DATE ${VERSION_H}!:C/^[^0-9]*//}
 XTERM_PATCH=   ${:!${TOOL_GREP} XTERM_PATCH ${VERSION_H}!:C/^[^0-9]*//}
 
+# my make-fu is too weak to use X11EXTRAMANTRANSFORMS to set
+# __app_version__
 X11EXTRAMANDEFS+= \
        -e 's,__app_version__,Patch \#${XTERM_PATCH},g' \
-       -e 's,__app_date__,${XTERM_DATE},g' \
-       -e 's,__default_termname__,xterm,g' \
-       -e 's,__default_termid__,420,g' \
-       -e 's,__double_buffer__,False,g' \
-       -e 's,__alt_sends_esc__,False,g' \
-       -e 's,__meta_sends_esc__,False,g' \
-       -e 's,__backarrow_is_bs__,True,g' \
-       -e 's,__backarrow_is_erase__,False,g' \
-       -e 's,__delete_is_del__,Maybe,g' \
-       -e 's,__initial_erase__,False,g' \
-       -e 's,__default_class__,XTerm,g' \
-       -e 's,__mansuffix__,1,g' \
-       -e 's,__pixmapsdir__,${X11INCDIR}/X11/pixmaps,g'
+       -e 's,__app_date__,${XTERM_DATE},g'
+
+
+# The standard name for this is __appmansuffix__ but xterm doesn't use it.
+X11EXTRAMANTRANSFORMS += __mansuffix__         1
+
+# XXX: FIXME: we do NOT install xpm icons distributed with xterm.
+#
+# Also, X11INCDIR was IMO not a great choice.  The fact that xpm files
+# happen to also be valid C is not reason enough to declare them
+# "includes" - this is not the way they are primarily used.
+X11EXTRAMANTRANSFORMS += __pixmapsdir__                ${X11INCDIR}/X11/pixmaps
+
+# Cf. xsrc/external/mit/xterm/include/xtermcfg.h
+X11EXTRAMANTRANSFORMS += __alt_sends_esc__     False
+X11EXTRAMANTRANSFORMS += __backarrow_is_bs__   True
+X11EXTRAMANTRANSFORMS += __backarrow_is_erase__        False
+X11EXTRAMANTRANSFORMS += __default_class__     XTerm
+X11EXTRAMANTRANSFORMS += __default_termid__    420
+X11EXTRAMANTRANSFORMS += __default_termname__  xterm
+X11EXTRAMANTRANSFORMS += __delete_is_del__     Maybe
+X11EXTRAMANTRANSFORMS += __double_buffer__     False
+X11EXTRAMANTRANSFORMS += __initial_erase__     False
+X11EXTRAMANTRANSFORMS += __meta_sends_esc__    False



Home | Main Index | Thread Index | Old Index