aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/config.mk
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-07-21 00:27:17 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-07-21 00:27:17 +0000
commit37d9f47f491355aa4027b58b1c81053c68d6f43d (patch)
treeb1234f1bad350d12358f72578dfbea2711b407fa /lib/ncurses/config.mk
parent9bab236702b4f33a990011b08a2deebbb8ea6e0c (diff)
downloadsrc-37d9f47f491355aa4027b58b1c81053c68d6f43d.tar.gz
src-37d9f47f491355aa4027b58b1c81053c68d6f43d.zip
- Correctly substitute variables like @NCURSES_MAJOR@ in manual pages
PR: doc/114711 Submitted by: Yuri Pankov <yuri at darklight.org.ru> Approved by: re (bmah) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=171527
Diffstat (limited to 'lib/ncurses/config.mk')
-rw-r--r--lib/ncurses/config.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk
index 7bc7d012203a..d01e17a413bd 100644
--- a/lib/ncurses/config.mk
+++ b/lib/ncurses/config.mk
@@ -42,3 +42,13 @@ TERMINFODIR?= ${SHAREDIR}/misc
ncurses_def.h: MKncurses_def.sh ncurses_defs
AWK=${AWK} sh ${NCURSES_DIR}/include/MKncurses_def.sh \
${NCURSES_DIR}/include/ncurses_defs > ncurses_def.h
+
+# Manual pages filter
+MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \
+ -e 's%@DATADIR@%/usr/share%g' \
+ -e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' \
+ -e 's%@NCURSES_MAJOR@%${NCURSES_MAJOR}%g' \
+ -e 's%@NCURSES_MINOR@%${NCURSES_MINOR}%g' \
+ -e 's%@NCURSES_PATCH@%${NCURSES_PATCH}%g' \
+ -e 's%@TIC@%tic%g' \
+ -e 's%@INFOCMP@%infocmp%g'