summaryrefslogtreecommitdiff
path: root/share/termtypes
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-07-05 03:34:31 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-07-05 03:34:31 +0000
commit6e5c24f4d0d98daa27a27a626ea25f0172b916bf (patch)
tree99b51715619ad009e2136dd2c7cb59d9c7d3fe38 /share/termtypes
parent8b5fd67d6f003f378a1fb07c346c2f201482c0cd (diff)
Trim comments from termtypes.master before passing through cap_mkdb,
speeds things up a good bit. ok tedu
Diffstat (limited to 'share/termtypes')
-rw-r--r--share/termtypes/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/share/termtypes/Makefile b/share/termtypes/Makefile
index 833e3212e43..a1d72ae9698 100644
--- a/share/termtypes/Makefile
+++ b/share/termtypes/Makefile
@@ -1,17 +1,18 @@
-# $OpenBSD: Makefile,v 1.18 2011/07/04 21:27:57 nicm Exp $
+# $OpenBSD: Makefile,v 1.19 2011/07/05 03:34:30 nicm Exp $
#
# Take termcap/terminfo master file and generate termcap/terminfo .db files
MAN= termcap.5
-CLEANFILES+= terminfo.src termcap.src terminfo.db termcap.db
+CLEANFILES+= terminfo.src termcap.src terminfo.db termcap.db termcap
TIC= /usr/bin/tic
-all: terminfo.db termcap.db
+all: terminfo.db termcap.db termcap
terminfo.src: termtypes.master
${TIC} -I -x ${.ALLSRC} | sed \
-e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
-e 's,/usr/lib/tabset,/usr/share/tabset,g' \
+ -e '/^#/d' \
> ${.TARGET}
@if [ ! -s ${.TARGET} ]; then \
echo ${.TARGET} is zero length! You need to update ${TIC} ;\
@@ -26,6 +27,7 @@ termcap.src: termtypes.master
${TIC} -C -x ${.ALLSRC} | sed \
-e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
-e 's,/usr/lib/tabset,/usr/share/tabset,g' \
+ -e '/^#/d' \
> ${.TARGET}
@if [ ! -s ${.TARGET} ]; then \
echo ${.TARGET} is zero length! You need to update ${TIC} ;\
@@ -36,12 +38,18 @@ termcap.src: termtypes.master
termcap.db: termcap.src
cap_mkdb -f termcap termcap.src
+termcap: termtypes.master
+ ${TIC} -C -x ${.ALLSRC} | sed \
+ -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
+ -e 's,/usr/lib/tabset,/usr/share/tabset,g' \
+ > ${.TARGET}
+
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 terminfo.db \
${DESTDIR}${BINDIR}/misc/terminfo.db
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap.db \
${DESTDIR}${BINDIR}/misc/termcap.db
- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap.src \
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
${DESTDIR}${BINDIR}/misc/termcap
ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap