diff options
author | rafan <rafan@FreeBSD.org> | 2007-07-21 00:27:17 +0000 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-07-21 00:27:17 +0000 |
commit | bfde2cbba61590ea3728942b4b9a0dbcec97ed0e (patch) | |
tree | b1234f1bad350d12358f72578dfbea2711b407fa | |
parent | 8db32e8a1ed746af220e5b0a1e06c8e3843893f0 (diff) | |
download | FreeBSD-src-bfde2cbba61590ea3728942b4b9a0dbcec97ed0e.zip FreeBSD-src-bfde2cbba61590ea3728942b4b9a0dbcec97ed0e.tar.gz |
- 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
-rw-r--r-- | lib/ncurses/config.mk | 10 | ||||
-rw-r--r-- | lib/ncurses/ncurses/Makefile | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk index 7bc7d01..d01e17a 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' diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index e52ce96..b619f51 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -447,8 +447,6 @@ terminfo.5: MKterminfo.sh terminfo.head Caps ${NCURSES_DIR}/include/Caps ${NCURSES_DIR}/man/terminfo.tail >$@ CLEANFILES+= terminfo.5 -MANFILTER= sed -e 's%@TERMINFO@%${TERMINFODIR}/terminfo%g' \ - -e 's%@NCURSES_OSPEED@%${NCURSES_OSPEED}%g' .PATH: ${NCURSES_DIR}/man MAN= \ |